• Brad Fitzpatrick's avatar
    net/http: close client fd sooner on response read error · c0ecfb07
    Brad Fitzpatrick authored
    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.
    
    R=golang-dev, rsc
    CC=golang-dev
    https://golang.org/cl/5602043
    c0ecfb07
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...