net/http: allow concurrent requests with different Transport proxy #31952
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
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?
there is one transport in my program
several goroutine send get request with same url
when one request return 403 , i change the proxy
What did you expect to see?
every goroutine can use it own proxy
it seems transport.Proxy is not safe for concurrent
What did you see instead?
the proxy in other goroutine request is also change
example code
i want each request use it's own proxy
The text was updated successfully, but these errors were encountered: