-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http: race in http2Transport [1.14 backport] #42586
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
Comments
We should also backport #42498. |
We are taking a little more time to review this before deciding. |
This is a serious issue with no workaround. Approved. |
To resolve this backport issue, CL 253259 (for #31192) and CL 269058 (for #42498) will need to be backported to the x/net's |
Change https://golang.org/cl/288114 mentions this issue: |
Change https://golang.org/cl/288113 mentions this issue: |
…ritten When the clientConn is done with a request, if there is a request body, we must wait until the body is written otherwise there can be a race when attempting to rewind the body. Updates golang/go#42586 Change-Id: I77606cc19372eea8bbd8995102354f092b8042be Reviewed-on: https://go-review.googlesource.com/c/net/+/253259 Reviewed-by: Damien Neil <dneil@google.com> Trust: Emmanuel Odeke <emmanuel@orijtech.com> Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com> TryBot-Result: Go Bot <gobot@golang.org> (cherry picked from commit ff519b6) Reviewed-on: https://go-review.googlesource.com/c/net/+/288113 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Trust: Damien Neil <dneil@google.com>
Closed by merging 9c8171985b644dfada08604cbfdaee0c40f4b536 to release-branch.go1.14. |
…d body write Once a request body is scheduled to be written, a result of the write is always expected. If the body writer is cancelled, and the write was never started, send a successful result. The test included is a modified version of the TestNoSniffExpectRequestBody_h2 found in net/http. Updates golang/go#42586 Change-Id: If3f23993170bdf10e9ae4244ec13ae269bd3877a Reviewed-on: https://go-review.googlesource.com/c/net/+/269058 Trust: Dmitri Shuralyov <dmitshur@golang.org> Trust: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> (cherry picked from commit 5d6afe9) Reviewed-on: https://go-review.googlesource.com/c/net/+/288114 Trust: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
(This was closed early due to #29599.) Reopening for updating the vendored/bundled version in the the main repository. |
Closed by merging 4acb7895a0574887276b79d6c959e9aa3182386d to release-branch.go1.14. |
Change https://golang.org/cl/288115 mentions this issue: |
Updates bundled http2 to x/net git rev 4acb7895a for: http2: send a nil error if we cancel a delayed body write https://golang.org/cl/288114 http2: wait until the request body has been written https://golang.org/cl/288113 Created by: go get -d golang.org/x/net@release-branch.go1.14 go mod tidy go mod vendor go generate -run=bundle std Fixes #42586. Change-Id: Ib5aecaeb1deb13b8f0e51a864b60eede248aef0d Reviewed-on: https://go-review.googlesource.com/c/go/+/288115 Trust: Damien Neil <dneil@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Closed by merging a2e2011 to |
@answer1991 requested issue #31192 to be considered for backport to the next 1.14 minor release.
(The corresponding 1.15 backport request is #42539.)
The text was updated successfully, but these errors were encountered: