net/http: Response.Body.Close() has nothing to do with re-use persistent connection #29886
Labels
Milestone
Comments
I'm sorry, I don't understand your question. What are you asking? Can you show us some code? It is likely that you will get a better and faster answer if you use a forum. See https://golang.org/wiki/Questions. |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
go/src/net/http/transport.go
Line 2277 in 572c4bc
err := es.body.Close() will return nil, not io.EOF
if the Body has been read, es.condfn(err) will return nil, fn not be called
if the Body has not yet been read, wiil enter
return es.earlyCloseFn()
while in net/http/client.go has this comment:
go/src/net/http/client.go
Line 480 in 1fb5961
the question is that the comment is not right: net/http: Response.Body.Close() has nothing to do with re-use persistent connection
The text was updated successfully, but these errors were encountered: