]> Cypherpunks repositories - gostls13.git/commit
net/http: make Server respect shutdown state after handler finishes
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 11 Nov 2016 18:43:39 +0000 (18:43 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 11 Nov 2016 19:56:12 +0000 (19:56 +0000)
commit9f9d83404f938a0dfb98d3f4a4d420261606069a
treed148616006eed7a63d2e6bfcbd48549752c4c0f9
parent39e3cbfff623d7941b519f9d35883ef3b74cbcd6
net/http: make Server respect shutdown state after handler finishes

If the Server's Shutdown (or SetKeepAlivesEnabled) method was called
while a connection was in a Handler, but after the headers had been
written, the connection was not later closed.

Fixes #9478
Updates #17754 (reverts that workaround)

Change-Id: I65324ab8217373fbb38e12e2b8bffd0a91806072
Reviewed-on: https://go-review.googlesource.com/33141
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/http/serve_test.go
src/net/http/server.go