diff options
| author | Nicholas S. Husin <nsh@golang.org> | 2026-04-10 13:48:35 -0400 |
|---|---|---|
| committer | Nicholas Husin <nsh@golang.org> | 2026-04-10 14:18:22 -0700 |
| commit | 6299ca285a0a6bf7d2b1bfbb03b6c3288b846bdf (patch) | |
| tree | de8885277413e8a53ad63be69a01e10c6f552dea /src/net/http/clientconn_test.go | |
| parent | 4a9e479d06754923aad320c53ab02371266f6b57 (diff) | |
| download | go-6299ca285a0a6bf7d2b1bfbb03b6c3288b846bdf.tar.xz | |
net/http: fix data race in TestClientRedirectUseResponse
There is a data race between the assignment of ts, and the access of
ts.URL in the server handler. The data race seems to be more common when
running the test against our HTTP/3 implementation.
Fix the issue by deriving ts.URL via the given Request in the server
handler.
For #70914
Change-Id: Ic1924bf2c814517bae6b2e999d5f7efa6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/765443
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Nicholas Husin <husin@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/net/http/clientconn_test.go')
0 files changed, 0 insertions, 0 deletions
