]> Cypherpunks repositories - gostls13.git/commit
net/http: use TCP Keep-Alives on DefaultTransport's connections
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 24 Feb 2014 23:20:45 +0000 (15:20 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 24 Feb 2014 23:20:45 +0000 (15:20 -0800)
commit49beb23ba73eab22c470e68cac87d51a0d12d97b
tree296d04a0ad83439a5df751fe493282b3a7d67c48
parentc7612f3426977332b471acb8f1928a1cd027f896
net/http: use TCP Keep-Alives on DefaultTransport's connections

Update #3362

Also set a 30 second timeout, instead of relying on the
operating system's timeout, which if often but not always 3
minutes.

LGTM=crawshaw
R=rsc, crawshaw
CC=golang-codereviews
https://golang.org/cl/68330046
src/pkg/net/http/transport.go