aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/exec_linux_test.go
diff options
context:
space:
mode:
authorMichael Fraenkel <michael.fraenkel@gmail.com>2020-12-02 17:07:27 -0700
committerDmitri Shuralyov <dmitshur@golang.org>2020-12-09 03:06:41 +0000
commit854a2f8e01a554d8052445563863775406a04b71 (patch)
tree9af3eca3972047e8cb9e3f366f696db65d74277d /src/syscall/exec_linux_test.go
parent6fa06d960b5ec38867a35dc278ae318ecff1b6c6 (diff)
downloadgo-854a2f8e01a554d8052445563863775406a04b71.tar.xz
net/http: add connections back that haven't been canceled
Issue #41600 fixed the issue when a second request canceled a connection while the first request was still in roundTrip. This uncovered a second issue where a request was being canceled (in roundtrip) but the connection was put back into the idle pool for a subsequent request. The fix is the similar except its now in readLoop instead of roundTrip. A persistent connection is only added back if it successfully removed the cancel function; otherwise we know the roundTrip has started cancelRequest. Fixes #42942 Change-Id: Ia56add20880ccd0c1ab812d380d8628e45f6f44c Reviewed-on: https://go-review.googlesource.com/c/go/+/274973 Trust: Dmitri Shuralyov <dmitshur@golang.org> Trust: Damien Neil <dneil@google.com> Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/syscall/exec_linux_test.go')
0 files changed, 0 insertions, 0 deletions