Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http/httptest: fix race in Server.Close #31

Merged
merged 1 commit into from Mar 25, 2022
Merged

Conversation

maisem
Copy link

@maisem maisem commented Mar 25, 2022

When run with race detector the test fails without the fix.

Fixes golang#51799

Change-Id: I273adb6d3a2b1e0d606b9c27ab4c6a9aa4aa8064
GitHub-Last-Rev: a5ddd14
GitHub-Pull-Request: golang#51805
Reviewed-on: https://go-review.googlesource.com/c/go/+/393974
Reviewed-by: Damien Neil dneil@google.com
Reviewed-by: Brad Fitzpatrick bradfitz@golang.org
Trust: Brad Fitzpatrick bradfitz@golang.org
Run-TryBot: Brad Fitzpatrick bradfitz@golang.org
(cherry picked from commit 1d19cea)

When run with race detector the test fails without the fix.

Fixes golang#51799

Change-Id: I273adb6d3a2b1e0d606b9c27ab4c6a9aa4aa8064
GitHub-Last-Rev: a5ddd14
GitHub-Pull-Request: golang#51805
Reviewed-on: https://go-review.googlesource.com/c/go/+/393974
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Trust: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
(cherry picked from commit 1d19cea)
@maisem maisem requested review from bradfitz and dsnet March 25, 2022 16:20
@maisem maisem merged commit 5ce3ec4 into tailscale.go1.18 Mar 25, 2022
@maisem maisem deleted the maisem/f2 branch March 25, 2022 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

net/http/httptest: race in Close
2 participants