]> Cypherpunks repositories - gostls13.git/commit
net/http: fix data race due to writeLoop goroutine left running
authorSteven Hartland <steven.hartland@multiplay.co.uk>
Thu, 7 May 2020 21:12:21 +0000 (21:12 +0000)
committerBryan C. Mills <bcmills@google.com>
Tue, 25 Aug 2020 17:37:38 +0000 (17:37 +0000)
commit5e1e8c4c9f99da52419c99e618425794102c9769
tree8c5c7f091b900732981d34304fee4a23f11baa32
parent91a52de5274a13fcaab68c0a78115eff632f68fc
net/http: fix data race due to writeLoop goroutine left running

Fix a data race for clients that mutate requests after receiving a
response error which is caused by the writeLoop goroutine left
running, this can be seen on canceled requests.

Fixes #37669

Change-Id: I0e0e4fd63266326b32587d8596456760bf848b13
Reviewed-on: https://go-review.googlesource.com/c/go/+/232799
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/transport.go
src/net/http/transport_test.go