]> Cypherpunks repositories - gostls13.git/commit
net/http: non-keepalive connections close successfully
authorJames Gray <james@james4k.com>
Fri, 18 May 2012 17:34:37 +0000 (10:34 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 18 May 2012 17:34:37 +0000 (10:34 -0700)
commitccd63c3c19b1598d8e717c1575a01f77dd83a499
tree415624ce029ee2ab212ea12fff930841d345654d
parent434625d1be0d028f30f269344d9c5783e84c4c74
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