Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: allow concurrent requests with different Transport proxy #31952
What version of Go are you using (
Correct; you cannot set Transport.Proxy from two concurrent goroutines, just like how you can't set anything else concurrently from two concurrent goroutines.
Your Transport.Proxy function should be set before any concurrent use and then it should consult its