]> Cypherpunks repositories - gostls13.git/commit
net/http: don't re-use Transport connections if we've seen an EOF
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 25 Mar 2014 17:59:09 +0000 (10:59 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 25 Mar 2014 17:59:09 +0000 (10:59 -0700)
commitcc2c5fc3d28ef2e179e605fa41d5e7eec04e34ac
tree4518c2d9e123ea316e569a46b3d645313f4010b6
parentf61f18d694028e5dd466dde11aa1c84bb3a434ed
net/http: don't re-use Transport connections if we've seen an EOF

This the second part of making persistent HTTPS connections to
certain servers (notably Amazon) robust.

See the story in part 1: https://golang.org/cl/76400046/

This is the http Transport change that notes whether our
net.Conn.Read has ever seen an EOF. If it has, then we use
that as an additional signal to not re-use that connection (in
addition to the HTTP response headers)

Fixes #3514

LGTM=rsc
R=agl, rsc
CC=golang-codereviews
https://golang.org/cl/79240044
src/pkg/net/http/transport.go
src/pkg/net/http/transport_test.go