net/http: http.Transport leaks context from the request #50798
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I use the
http.Transport
to make an HTTP request. I add a not empty struct in the request context.You can reproduce it like this
What did you expect to see?
After the end of the request, the struct and the context are cleaned by the GC.
What did you see instead?
After the end of the request, the struct and the context are not cleaned by the GC.
Maybe this is the same issue as #43966
The text was updated successfully, but these errors were encountered: