Skip to content

net/http,x/net/http2: HTTP/2 RoundTrip does not close request body if ClientConnPool's GetClientConn fails #61257

@alex-negret

Description

@alex-negret

The RoundTrip contract states that the request body should be closed by RoundTrip, even when an error occurs.
https://pkg.go.dev/net/http#RoundTripper

The HTTP/2 RoundTrip / RoundTripOpt does not close the request body, if its client connection pool cannot acquire a connection (see transport.go#557).

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions