◐ Shell
clean mode source ↗

GH-103472: close response in HTTPConnection._tunnel by graingert · Pull Request #103473 · python/cpython

@graingert

@bedevere-bot mentioned this pull request

Apr 12, 2023

@blurb-it

@graingert graingert marked this pull request as ready for review

April 12, 2023 13:07

graingert

pquentin

@graingert

@graingert

orsenthil

gpshead

graingert

orsenthil

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

May 2, 2023
…03473)

Avoid a potential `ResourceWarning` in `http.client.HTTPConnection`
by closing the proxy / tunnel's CONNECT response explicitly.

---------

(cherry picked from commit 9de0cf2)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>

gpshead added a commit that referenced this pull request

May 2, 2023
#104077)

GH-103472: close response in HTTPConnection._tunnel (GH-103473)

Avoid a potential `ResourceWarning` in `http.client.HTTPConnection`
by closing the proxy / tunnel's CONNECT response explicitly.

---------

(cherry picked from commit 9de0cf2)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>

@graingert graingert deleted the close-response-in-http-client-tunnel branch

May 2, 2023 11:26

carljm added a commit to carljm/cpython that referenced this pull request

May 2, 2023

carljm added a commit to carljm/cpython that referenced this pull request

May 2, 2023