Skip to content

net/http2: http.Flusher doesn't send data to the client #18510

Closed
@libnat

Description

@libnat

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.8beta2 darwin/amd64

I am using HTTP/2, and want to push data to client.

w.Write([]byte("Hello"))
w.(http.Flusher).Flush()

The data won't reach the client. I read the doc, and make sure no http proxy is used in the client.

If I call it in a loop for 100 times, the client will receive the data.

for i := 0; i < 100; i++ {
w.Write([]byte("Hello"))
w.(http.Flusher).Flush()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions