x/net/http2: When using an http2.Transport with http.Client, TLS-related httptrace callbacks are not invoked #52110
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
First, thank you so much for the awesome httptrace functionality! It's a lifesaver. Second, I have a patch that fixes the issue here -- I am submitting an Issue first because
and I want to make sure that I am following best practices. And now, on with the report:
What version of Go are you using (
go version
)?Note: Same behavior seen with the "Release" versions of 1.18.
Does this issue reproduce with the latest release?
Yes (see above)
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
A fully buildable and executable program (with flags for eliciting expected and unexpected behavior) is available at
https://github.com/hawkinsw/bugs/tree/main/httptrace
$ go build ./repro.go
To get expected behavior,
$ ./repro
To get unexpected behavior,
$ ./repro -bug
All code (and rationale behind it) in the MRE is commented. I look forward to submitting my (simple) patch and contributing!
I hope that all this information is helpful!
Will
The text was updated successfully, but these errors were encountered: