Skip to content

net/http: make Transport.CancelRequest somehow work against http2 #14095

Closed
@bradfitz

Description

@bradfitz

https://golang.org/cl/18873 documented loudly that CancelRequest doesn't work against HTTP/2 servers, but perhaps we can make it work anyway.

More background: #13540 ("x/net/http2: decide what to do about Transport.CancelRequest"), which made http.Client stop using CancelRequest itself.

Really, people should just stop using CancelRequest. But in many cases we created the Request, so we could also own the cancel channel and use it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions