1
0
mirror of https://github.com/golang/go synced 2024-11-12 08:10:21 -07:00
go/src
Brad Fitzpatrick 11776a39a1 net/http: add Transport.CancelRequest
Permits all sorts of custom HTTP timeout policies without
adding a new Transport timeout Duration for each combination
of HTTP phases.

This keeps track internally of which TCP connection a given
Request is on, and lets callers forcefully close the TCP
connection for a given request, without actually getting
the net.Conn directly.

Additionally, a future CL will implement res.Body.Close (Issue
3672) in terms of this.

Update #3362
Update #3672

R=golang-dev, rsc, adg
CC=golang-dev
https://golang.org/cl/7372054
2013-02-27 15:20:13 -08:00
..
cmd cmd/gc: don't emit type instructions for nonexisting locals 2013-02-27 19:47:14 +01:00
lib9 all: clean up C function prototypes 2013-02-26 09:51:33 -08:00
libbio
libmach libmach: fix build (set and not used) 2013-02-26 22:51:47 -05:00
pkg net/http: add Transport.CancelRequest 2013-02-27 15:20:13 -08:00
all.bash
all.bat src/all.bat: fix banner 2012-09-20 00:58:34 +08:00
all.rc build: do not set GOBIN on Plan 9 2013-02-26 09:25:46 -08:00
clean.bash
clean.bat
clean.rc
make.bash build: clang support 2013-02-15 13:37:43 -08:00
make.bat lib9, cmd/dist, cmd/5l: embed GOARM into cmd/5l and auto detect GOARM 2012-10-22 14:26:36 +08:00
Make.dist
make.rc build: do not set GOBIN on Plan 9 2013-02-26 09:25:46 -08:00
race.bash src: add race.bash 2013-01-28 21:05:25 +11:00
race.bat src: add race.bat 2013-02-03 00:49:37 +08:00
run.bash cmd/cgo, cmd/dist, cmd/go: cgo with clang fixes 2013-02-23 20:24:38 +08:00
run.bat run.{bash,bat,rc}: unset GOMAXPROCS before ../test 2012-11-15 11:40:10 +11:00
run.rc build: do not set GOBIN on Plan 9 2013-02-26 09:25:46 -08:00
sudo.bash sudo.bash: diagnose when the go tool is not in $PATH 2012-11-15 10:42:39 -08:00