Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: possible to lose CancelRequest between getConn and roundTrip #10511
As noted by @DanielMorsing, it's possible to lose a Transport.CancelRequest between dialing the conn and roundTrip.
There exists a small window where the cancel request is still:
... but we've already dialed, but we haven't yet entered roundTrip and its: