Repository navigation
ResourceWarning due to unclosed response in http.client.HTTPConnection._tunnel #103472
Copy link
Copy link
Closed
Closed
Copy link
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or errorstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13only security fixesonly security fixes
on Apr 12, 2023 - added a commit that references this issue
on Apr 12, 2023 - changed the title
[-]ResourceWarning due to unclosed request in http.client.HTTPConnection._tunnel[/-][+]ResourceWarning due to unclosed response in http.client.HTTPConnection._tunnel[/+]on Apr 12, 2023 - added 2 commits that reference this issue
on May 2, 2023 Looks like this was fixed, thanks all!
- added a commit that references this issue
on Sep 12, 2024 - added a commit that references this issue
on Sep 13, 2024 - added a commit that references this issue
on Sep 16, 2024 - added a commit that references this issue
on Sep 17, 2024 - added a commit that references this issue
on Oct 3, 2024 - added 3 commits that reference this issue
on Dec 2, 2024 - added a commit that references this issue
on Dec 3, 2024 - added 2 commits that reference this issue
on Dec 3, 2024 - added 2 commits that reference this issue
on Dec 25, 2024
Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
calling
http.client.HTTPConnection._tunnel()may result in aResourceWarningbecause the response is not closedthis results in an intermittent failure on the urllib3 test
test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_tunneling_proxy_request_timeout[https-https]with ResourceWarnings enabled, see https://github.com/urllib3/urllib3/actions/runs/4638944124/jobs/8209257011#step:6:2471 and https://github.com/urllib3/urllib3/blob/4d425a2d767ce2e0c988fff4385046ea57458c49/test/with_dummyserver/test_proxy_poolmanager.py#L480-L498Your environment
Linked PRs