• Brad Fitzpatrick's avatar
    http: fix Transport connection re-use race · 243266f6
    Brad Fitzpatrick authored
    A connection shouldn't be made available
    for re-use until its body has been consumed.
    
    (except in the case of pipelining, which isn't
    implemented yet)
    
    This CL fixes some issues seen with heavy load
    against Amazon S3.
    
    Subtle implementation detail: to prevent a race
    with the client requesting a new connection
    before previous one is returned, we actually
    have to call putIdleConnection _before_ we
    return from the final Read/Close call on the
    http.Response.Body.
    
    R=rsc, adg
    CC=golang-dev
    https://golang.org/cl/4351048
    243266f6
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...