]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] net/http: non-keepalive connections close successfully
authorJames Gray <james@james4k.com>
Fri, 21 Sep 2012 19:53:36 +0000 (05:53 +1000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 21 Sep 2012 19:53:36 +0000 (05:53 +1000)
commit4900af08391d0ecf566afc7a15b4b4effc5652cb
tree8343f5ac5ab6f38bd67e392ac7e7c45b980ed34f
parent6e3205f5194f31dbc46262c0777e8b80036ed94e
[release-branch.go1] net/http: non-keepalive connections close successfully

««« backport 820ffde8c396
net/http: non-keepalive connections close successfully

Connections did not close if Request.Close or Response.Close was true. This meant that if the user wanted the connection to close, or if the server requested it via "Connection: close", the connection would not be closed.

Fixes #1967.

R=golang-dev, rsc, bradfitz
CC=golang-dev
https://golang.org/cl/6201044

»»»
src/pkg/net/http/transport.go
src/pkg/net/http/transport_test.go