-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: lock the read-only mutex in shouldRedirect #23994
Conversation
This PR (HEAD: 2df4617) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/#/c/go/+/95775 to see it. Tip: You can toggle comments from me using the |
Message from Gobot Gobot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/95775. |
You have to change the base branch to |
Message from Andrew Bonventre: Patch Set 1: This is on the wrong branch. Please rebase onto master instead of release-branch.go1.10 Please don’t reply on this GitHub thread. Visit golang.org/cl/95775. |
This PR (HEAD: 0919042) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/#/c/go/+/95775 to see it. Tip: You can toggle comments from me using the |
Message from Damien Mathieu: Patch Set 2:
Sorry about that. I've rebased my PR. Please don’t reply on this GitHub thread. Visit golang.org/cl/95775. |
Message from Brad Fitzpatrick: Patch Set 2: Code-Review-2 Temporary -2 until this is sorted out onto the right branch. Maybe Gerritbot can't move its Gerrit branch from its PR branch moving. Andy? Please don’t reply on this GitHub thread. Visit golang.org/cl/95775. |
Message from Brad Fitzpatrick: Patch Set 2: Also, it'd be nice to see a new test for this. (a test with two goroutines that fails under the race detector before, and passes with this change) Please don’t reply on this GitHub thread. Visit golang.org/cl/95775. |
This PR (HEAD: 8cb5f3e) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/#/c/go/+/96575 to see it. Tip: You can toggle comments from me using the |
Message from Brad Fitzpatrick: Patch Set 1: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/96575. |
Since that method uses 'mux.m', we need to lock the mutex to avoid data races.
This PR (HEAD: 163a7d4) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/#/c/go/+/96575 to see it. Tip: You can toggle comments from me using the |
Message from Gerrit Bot: Uploaded patch set 2: Commit message was updated. Please don’t reply on this GitHub thread. Visit golang.org/cl/96575. |
Message from Gerrit Bot: Uploaded patch set 3: Commit message was updated. Please don’t reply on this GitHub thread. Visit golang.org/cl/96575. |
Message from Damien Mathieu: Patch Set 3: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/96575. |
Message from Andrew Bonventre: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/96575. |
Message from Damien Mathieu: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/96575. |
Message from Andrew Bonventre: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/96575. |
Message from Gerrit Bot: Uploaded patch set 4: Commit message was updated. Please don’t reply on this GitHub thread. Visit golang.org/cl/96575. |
Message from Brad Fitzpatrick: Patch Set 5: Patch Set 4 was rebased Please don’t reply on this GitHub thread. Visit golang.org/cl/96575. |
Message from Brad Fitzpatrick: Patch Set 5: Run-TryBot+1 Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/96575. |
Message from Gobot Gobot: Patch Set 5: TryBots beginning. Status page: https://farmer.golang.org/try?commit=c71940a0 Please don’t reply on this GitHub thread. Visit golang.org/cl/96575. |
Message from Gobot Gobot: Patch Set 5: TryBot-Result-1 1 of 17 TryBots failed: Consult https://build.golang.org/ to see whether they are new failures. Please don’t reply on this GitHub thread. Visit golang.org/cl/96575. |
This PR is being closed because golang.org/cl/96575 has been merged. |
Since that method uses 'mux.m', we need to lock the mutex to avoid data races. Change-Id: I998448a6e482b5d6a1b24f3354bb824906e23172 GitHub-Last-Rev: 163a7d4 GitHub-Pull-Request: #23994 Reviewed-on: https://go-review.googlesource.com/96575 Reviewed-by: Brad Fitzpatrick <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]>
Is there any info on which future release of go will contain this fix? I can't find it either in 1.10.2 or 1.11 milestones. |
@m90 Note that few people read comments on GitHub pull requests. For better places to ask questions see https://golang.org/wiki/Questions . This fix will be in the future 1.11 release. |
Since that method uses 'mux.m', we need to lock the mutex to avoid data races. Change-Id: I998448a6e482b5d6a1b24f3354bb824906e23172 GitHub-Last-Rev: 163a7d4942e793b328e05a7eb91f6d3fdc4ba12b GitHub-Pull-Request: golang/go#23994 Reviewed-on: https://go-review.googlesource.com/96575 Reviewed-by: Brad Fitzpatrick <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]>
Since that method uses 'mux.m', we need to lock the mutex to avoid data races.