Descriptionnet/http: close client fd sooner on response read error
This fixes some test noise in TestStressSurpriseServerCloses when
ulimit -n something low, like 256 on a Mac.
Previously, when the server closed on us and we were expecting more
responses (like we are in that test), we'd read an "Unexpected EOF"
and just forget about the client's net.Conn. Now it's closed,
rather than waiting on the finalizer to release the fd.
Patch Set 1 #Patch Set 2 : diff -r f2167956d923 https://go.googlecode.com/hg #Patch Set 3 : diff -r f2167956d923 https://go.googlecode.com/hg #Patch Set 4 : diff -r e3df693ee667 https://go.googlecode.com/hg #MessagesTotal messages: 3
|