Skip to content

[3.11] GH-103472: close response in HTTPConnection._tunnel (GH-103473) - #104077

Merged
gpshead merged 1 commit into
python:3.11from
miss-islington:backport-9de0cf2-3.11
May 2, 2023
Merged

gpshead merged 1 commit into
python:3.11from
miss-islington:backport-9de0cf2-3.11

Conversation

@miss-islington

@miss-islington miss-islington commented May 2, 2023 •

Copy link
Copy Markdown
Contributor

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

…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
gpshead merged commit 0d40264 into python:3.11 May 2, 2023
@miss-islington
miss-islington deleted the backport-9de0cf2-3.11 branch May 2, 2023 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants