Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
May 2, 2023

Conversation

miss-islington
Copy link
Contributor

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

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants