net/http: Response.Body.Close() has nothing to do with re-use persistent connection #29886
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
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: