Title: ResourceWarning due to unclosed response in http.client.HTTPConnection._tunnel · Issue #103472 · python/cpython · GitHub
Open Graph Title: ResourceWarning due to unclosed response in http.client.HTTPConnection._tunnel · Issue #103472 · python/cpython
X Title: ResourceWarning due to unclosed response in http.client.HTTPConnection._tunnel · Issue #103472 · python/cpython
Description: Bug report calling http.client.HTTPConnection._tunnel() may result in a ResourceWarning because the response is not closed this results in an intermittent failure on the urllib3 test test/with_dummyserver/test_proxy_poolmanager.py::TestH...
Open Graph Description: Bug report calling http.client.HTTPConnection._tunnel() may result in a ResourceWarning because the response is not closed this results in an intermittent failure on the urllib3 test test/with_dumm...
X Description: Bug report calling http.client.HTTPConnection._tunnel() may result in a ResourceWarning because the response is not closed this results in an intermittent failure on the urllib3 test test/with_dumm...
Opengraph URL: https://github.com/python/cpython/issues/103472
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ResourceWarning due to unclosed response in http.client.HTTPConnection._tunnel","articleBody":"\u003c!--\r\n If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not\r\n the right place to seek help. Consider the following options instead:\r\n\r\n - reading the Python tutorial: https://docs.python.org/3/tutorial/\r\n - posting in the \"Users\" category on discuss.python.org: https://discuss.python.org/c/users/7\r\n - emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list\r\n - searching our issue tracker (https://github.com/python/cpython/issues) to see if\r\n your problem has already been reported\r\n--\u003e\r\n\r\n# Bug report\r\n\r\ncalling `http.client.HTTPConnection._tunnel()` may result in a `ResourceWarning` because the response is not closed\r\n\r\nthis 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-L498\r\n\r\n# Your environment\r\n\r\n\u003c!-- Include as many relevant details as possible about the environment you experienced the bug in --\u003e\r\n\r\n- CPython versions tested on: 3.8-3.11\r\n\r\n\u003c!--\r\nYou can freely edit this text. Remove any lines you believe are unnecessary.\r\n--\u003e\r\n\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-103473\r\n* gh-104077\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/graingert","@type":"Person","name":"graingert"},"datePublished":"2023-04-12T12:57:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/103472/cpython/issues/103472"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:40846cb7-741f-d226-83e9-ddf6e621c8a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C508:2EFE85:25ECA5A:3483252:69694CB7 |
| html-safe-nonce | cf18e977229ad14ca62d96f7bbc3e3a43d6a56a62093af55d8e313c31653e4c4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTA4OjJFRkU4NToyNUVDQTVBOjM0ODMyNTI6Njk2OTRDQjciLCJ2aXNpdG9yX2lkIjoiNjE2MTk2MjUzNTkzMDY0NTY4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 547578842f2fa4df1432369ad3abb627adf59cc04d1067cf6d41a6dcb9a6eaab |
| hovercard-subject-tag | issue:1664517194 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/103472/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f50969163f609593a2d9281cc42b148f501d054daeb95bb10d397554fccaf9b7/python/cpython/issues/103472 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f50969163f609593a2d9281cc42b148f501d054daeb95bb10d397554fccaf9b7/python/cpython/issues/103472 |
| og:image:alt | Bug report calling http.client.HTTPConnection._tunnel() may result in a ResourceWarning because the response is not closed this results in an intermittent failure on the urllib3 test test/with_dumm... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | graingert |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width