• Brad Fitzpatrick's avatar
    net/http: add Transport.MaxIdleConns limit · 81b2ea4d
    Brad Fitzpatrick authored
    The HTTP client had a limit for the maximum number of idle connections
    per-host, but not a global limit.
    
    This CLs adds a global idle connection limit too,
    Transport.MaxIdleConns.
    
    All idle conns are now also stored in a doubly-linked list. When there
    are too many, the oldest one is closed.
    
    Fixes #15461
    
    Change-Id: I72abbc28d140c73cf50f278fa70088b45ae0deef
    Reviewed-on: https://go-review.googlesource.com/22655Reviewed-by: 's avatarAndrew Gerrand <adg@golang.org>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    81b2ea4d
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...