KEMBAR78
[3.11] GH-103472: close response in HTTPConnection._tunnel (GH-103473) by miss-islington · Pull Request #104077 · python/cpython · GitHub
Skip to content

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants