-
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/httptrace: panic on GotConn [1.13 backport] #34285
Comments
@cuonglm Could you please provide a short rationale about why the backport might be needed to 1.13? See https://golang.org/wiki/MinorReleases, which describes the process. |
@toothrot This is a regression from 1.12, and bug introduce in 1.13. It should be backport to 1.13.1, otherwise, user code which built with go1.13 will be broken, example see grafana/k6#1153 |
SGTM. |
@tmthrgd would you mind creating CL with the cherry pick. |
@cuonglm I'm not sure how to do that, sorry. If someone else wants to create the cherry pick CL that would be appreciated. |
Change https://golang.org/cl/196579 mentions this issue: |
Thanks @ALTree, that was simple enough to follow. |
Closed by merging a055bb9 to release-branch.go1.13. |
CL 140357 caused HTTP/2 connections to be put in the idle pool, but failed to properly guard the trace.GotConn call in getConn. dialConn returns a minimal persistConn with conn == nil for HTTP/2 connections. This persistConn was then returned from queueForIdleConn and caused the httptrace.GotConnInfo passed into GotConn to have a nil Conn field. HTTP/2 connections call GotConn themselves so leave it for HTTP/2 to call GotConn as is done directly below. Fixes #34285 Change-Id: If54bfaf6edb14f5391463f908efbef5bb8a5d78e GitHub-Last-Rev: 2b7d66a GitHub-Pull-Request: #34283 Reviewed-on: https://go-review.googlesource.com/c/go/+/195237 Reviewed-by: Michael Fraenkel <michael.fraenkel@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> (cherry picked from commit 582d519) Reviewed-on: https://go-review.googlesource.com/c/go/+/196579 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Bryan C. Mills <bcmills@google.com> Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
@cuonglm requested issue #34282 to be considered for backport to the next 1.13 minor release.
The text was updated successfully, but these errors were encountered: