Descriptionnet/http: fix Server blocking after a Handler's Write fails
If a Handle's Write to a ResponseWriter fails (e.g. via a
net.Conn WriteDeadline via WriteTimeout on the Server), the
Server was blocking forever waiting for reads on that
net.Conn, even after a Write failed.
Instead, once we see a Write fail, close the connection,
since it's then dead to us anyway.
Fixes issue 4741
Patch Set 1 #Patch Set 2 : diff -r 5bc517167a08 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 5bc517167a08 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r e9b5c084d029 https://go.googlecode.com/hg/ #
MessagesTotal messages: 5
|