Skip to content

net/http: possible to lose CancelRequest between getConn and roundTrip #10511

Closed
@bradfitz

Description

@bradfitz

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:

        t.setReqCanceler(req, func() { close(cancelc) })

... but we've already dialed, but we haven't yet entered roundTrip and its:

    pc.t.setReqCanceler(req.Request, pc.cancelRequest)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions