Closed
Description
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()
}