diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-05-02 06:48:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 06:48:07 (GMT) |
commit | 0d4026432591d43185568dd31cef6a034c4b9261 (patch) | |
tree | dad2f5635285229b3bf9a3fdc4125e37741fb107 /Misc | |
parent | b07bae6971c3772c3d376813cdbbe4e719d4d322 (diff) | |
download | cpython-0d4026432591d43185568dd31cef6a034c4b9261.zip cpython-0d4026432591d43185568dd31cef6a034c4b9261.tar.gz cpython-0d4026432591d43185568dd31cef6a034c4b9261.tar.bz2 |
[3.11] GH-103472: close response in HTTPConnection._tunnel (GH-103473) (#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 9de0cf20fa0485e327e57cc0864c7476da85cfad)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-04-12-13-04-16.gh-issue-103472.C6bOHv.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-04-12-13-04-16.gh-issue-103472.C6bOHv.rst b/Misc/NEWS.d/next/Library/2023-04-12-13-04-16.gh-issue-103472.C6bOHv.rst new file mode 100644 index 0000000..01d84f0 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-04-12-13-04-16.gh-issue-103472.C6bOHv.rst @@ -0,0 +1,2 @@ +Avoid a potential :exc:`ResourceWarning` in :class:`http.client.HTTPConnection` +by closing the proxy / tunnel's CONNECT response explicitly. |