1
0
mirror of https://github.com/golang/go synced 2024-11-20 09:44:45 -07:00
go/src/net
Peter Waller ececbe89d4 net/http/httputil: ReverseProxy request cancellation
If an inbound connection is closed, cancel the outbound http request.

This is particularly useful if the outbound request may consume resources
unnecessarily until it is cancelled.

Fixes #8406

Change-Id: I738c4489186ce342f7e21d0ea3f529722c5b443a
Signed-off-by: Peter Waller <p@pwaller.net>
Reviewed-on: https://go-review.googlesource.com/2320
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-01-09 19:44:13 +00:00
..
http net/http/httputil: ReverseProxy request cancellation 2015-01-09 19:44:13 +00:00
mail net/mail: allow us-ascii encoding 2014-09-16 17:40:33 -04:00
rpc net/rpc: fix mutex comment 2014-10-13 10:27:51 -07:00
smtp net/smtp: add TLSConnectionState accessor 2014-12-28 21:35:58 +00:00
testdata build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
textproto net/textproto: turn an ancient DoS BUG annotation into a comment 2014-12-16 04:17:30 +00:00
url net/url: add example of using URL.Opaque with http.Request 2014-11-12 14:27:27 -08:00
cgo_android.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
cgo_bsd.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
cgo_linux.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
cgo_netbsd.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
cgo_openbsd.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
cgo_stub.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
cgo_unix_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
cgo_unix.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
conn_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
dial_gen_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
dial_gen.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
dial_test.go net: disable TestDialMultiFDLeak 2014-09-18 14:48:26 -04:00
dial.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
dialgoogle_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
dnsclient_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
dnsclient_unix_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
dnsclient_unix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
dnsclient.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
dnsconfig_unix_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
dnsconfig_unix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
dnsmsg_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
dnsmsg.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
dnsname_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
example_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
fd_mutex_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
fd_mutex.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
fd_plan9.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
fd_poll_nacl.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
fd_poll_runtime.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
fd_posix_test.go net: don't return io.EOF on reading data from datagram, raw sockets on windows 2015-01-01 05:21:32 +00:00
fd_posix.go net: don't return io.EOF on reading data from datagram, raw sockets on windows 2015-01-01 05:21:32 +00:00
fd_unix.go net: don't return io.EOF on reading data from datagram, raw sockets on windows 2015-01-01 05:21:32 +00:00
fd_windows.go net: don't return io.EOF on reading data from datagram, raw sockets on windows 2015-01-01 05:21:32 +00:00
file_plan9.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
file_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
file_test.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
file_unix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
file_windows.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
hosts_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
hosts.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
interface_bsd_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
interface_bsd.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
interface_darwin.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
interface_dragonfly.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
interface_freebsd.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
interface_linux_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
interface_linux.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
interface_netbsd.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
interface_openbsd.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
interface_stub.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
interface_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
interface_unix_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
interface_windows.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
interface.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
ip_test.go net: add test cases for parsing ipv4-mapped ipv6 address 2015-01-04 10:28:00 +00:00
ip.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
ipraw_test.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
iprawsock_plan9.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
iprawsock_posix.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
iprawsock.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
ipsock_plan9.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
ipsock_posix.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
ipsock_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
ipsock.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
lookup_plan9.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
lookup_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
lookup_test.go net: remove redundant test case for lookupIP with threadLimit 2015-01-01 05:20:16 +00:00
lookup_unix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
lookup_windows_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
lookup_windows.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
lookup.go net: if a DNS lookup times out, forget that it is in flight 2014-10-27 08:46:18 -07:00
mac_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
mac.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
mockicmp_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
mockserver_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
multicast_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
net_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
net_windows_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
net.go net: fix misleading package comment example 2014-09-29 12:24:06 -07:00
netgo_unix_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
packetconn_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
parse_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
parse.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
pipe_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
pipe.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
port_test.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
port_unix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
port.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
protoconn_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
race0.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
race.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sendfile_dragonfly.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sendfile_freebsd.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sendfile_linux.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sendfile_stub.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sendfile_windows.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
server_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
singleflight.go net: if a DNS lookup times out, forget that it is in flight 2014-10-27 08:46:18 -07:00
sock_bsd.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sock_cloexec.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sock_linux.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sock_plan9.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sock_posix.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sock_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sock_windows.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sockopt_bsd.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockopt_linux.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sockopt_plan9.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sockopt_posix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockopt_solaris.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sockopt_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockopt_windows.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sockoptip_bsd.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockoptip_linux.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sockoptip_posix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockoptip_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockoptip_windows.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
sys_cloexec.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
tcp_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
tcpsock_plan9.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
tcpsock_posix.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
tcpsock.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
tcpsockopt_darwin.go net: fix inconsistent behavior across platforms in SetKeepAlivePeriod 2014-09-11 17:56:58 +09:00
tcpsockopt_dragonfly.go net: fix inconsistent behavior across platforms in SetKeepAlivePeriod 2014-09-11 17:56:58 +09:00
tcpsockopt_openbsd.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
tcpsockopt_plan9.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
tcpsockopt_posix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
tcpsockopt_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
tcpsockopt_unix.go net: fix inconsistent behavior across platforms in SetKeepAlivePeriod 2014-09-11 17:56:58 +09:00
tcpsockopt_windows.go net: fix inconsistent behavior across platforms in SetKeepAlivePeriod 2014-09-11 17:56:58 +09:00
timeout_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
udp_test.go net: link skipped TestReadFromUDP to the issue 2014-10-10 13:12:32 +11:00
udpsock_plan9.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
udpsock_posix.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
udpsock.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
unicast_posix_test.go net: disable TestDualStackUDPListener in short mode 2014-10-06 13:09:14 -04:00
unix_test.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
unixsock_plan9.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
unixsock_posix.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
unixsock.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00