-
Notifications
You must be signed in to change notification settings - Fork 18k
x/net/http2: missing httptrace.GetConn hook #23041
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
/cc @tombergan |
By default this would be for Go 1.11 if this is a bug (I assume it is), but if it's a trivial fix I wouldn't fight it going into Go 1.10 either. |
I guess it's a trivial fix because |
Should I create a CL? |
Go for it. |
Gentle ping @nogoegst, as Go1.11 is coming up in less than a month. |
Change https://golang.org/cl/122590 mentions this issue: |
Tests in CL 122591 in the standard library, to be submitted after this CL. Updates golang/go#23041 Change-Id: I3538cc7d2a71e3a26ab4c2f47bb220a25404cddb Reviewed-on: https://go-review.googlesource.com/122590 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Change https://golang.org/cl/122591 mentions this issue: |
http2 implementation does not call
GetConn
hook before getting connection from pool [1]. As pernet/http/httptrace
documentation:For the record, this breaks clients that rely on GetConn->GotConn timings (such as
hey
benchmark) so they report wrong results.[1] https://github.com/golang/net/blob/master/http2/transport.go#L353
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.9.2 openbsd/amd64
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: