]> Cypherpunks repositories - gostls13.git/commit
net/http/httputil: ReverseProxy request cancellation
authorPeter Waller <p@pwaller.net>
Tue, 30 Dec 2014 12:19:43 +0000 (12:19 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 9 Jan 2015 19:44:13 +0000 (19:44 +0000)
commitececbe89d4d5ab151333cbadae725619c0ad9dd8
tree66f98c5776c84853d82c04b0e77ea454685f62c8
parent3aba41d6c3ee7a74cde724a2740896978ae81d89
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>
src/net/http/httputil/reverseproxy.go
src/net/http/httputil/reverseproxy_test.go