-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http: race in http2Transport [1.15 backport] #42539
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, first, CL 253259 (for #31192) and CL 269058 (for #42498) will need to be backported to the x/net's Afterwards, the bundled copy of |
Change https://golang.org/cl/287992 mentions this issue: |
Change https://golang.org/cl/287993 mentions this issue: |
Change https://golang.org/cl/288013 mentions this issue: |
Change https://golang.org/cl/288012 mentions this issue: |
… been written 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#42539 Change-Id: I77606cc19372eea8bbd8995102354f092b8042be Reviewed-on: https://go-review.googlesource.com/c/net/+/253259 Reviewed-by: Damien Neil <[email protected]> Trust: Emmanuel Odeke <[email protected]> Run-TryBot: Emmanuel Odeke <[email protected]> TryBot-Result: Go Bot <[email protected]> (cherry picked from commit ff519b6) Reviewed-on: https://go-review.googlesource.com/c/net/+/288012 Trust: Damien Neil <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
… delayed 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#42539 Change-Id: If3f23993170bdf10e9ae4244ec13ae269bd3877a Reviewed-on: https://go-review.googlesource.com/c/net/+/269058 Trust: Dmitri Shuralyov <[email protected]> Trust: Brad Fitzpatrick <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> (cherry picked from commit 5d6afe9) Reviewed-on: https://go-review.googlesource.com/c/net/+/288013 Trust: Damien Neil <[email protected]> Run-TryBot: Damien Neil <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
Change https://golang.org/cl/288112 mentions this issue: |
Closed by merging a01db0d to release-branch.go1.15. |
Updates bundled http2 to x/net git rev 16c2bbf55 for: http2: send a nil error if we cancel a delayed body write https://golang.org/cl/288013 http2: wait until the request body has been written https://golang.org/cl/288012 Created by: go mod edit -replace=golang.org/x/net=golang.org/x/[email protected] GOFLAGS='-mod=mod' go generate -run=bundle std go mod edit -dropreplace=golang.org/x/net go get -d golang.org/x/[email protected] go mod tidy go mod vendor Fixes #42539 Change-Id: I299c6d4a67ebc036e45c978e4d03cba73717b363 Reviewed-on: https://go-review.googlesource.com/c/go/+/288112 Trust: Damien Neil <[email protected]> Run-TryBot: Damien Neil <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
@answer1991 requested issue #31192 to be considered for backport to the next 1.15 minor release.
The text was updated successfully, but these errors were encountered: