You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running some HTTP proxy tests on our project. Getting unclosed socket warnings when an HTTP proxy returns with a 407 on CONNECT, causing our CI to fail. Digging a bit deeper it seems to be coming from urllib3.
It is only appearing on Python 3.10 and lower - I don't see this in 3.11 and 3.12.
Environment
Describe your environment.
At least, paste here the output of:
Subject
Running some HTTP proxy tests on our project. Getting unclosed socket warnings when an HTTP proxy returns with a 407 on CONNECT, causing our CI to fail. Digging a bit deeper it seems to be coming from urllib3.
It is only appearing on Python 3.10 and lower - I don't see this in 3.11 and 3.12.
Environment
Describe your environment.
At least, paste here the output of:
Steps to Reproduce
Dummy server that returns with 407 for HTTP CONNECT:
Urllib3 client to reproduce unclosed socket:
We use
urllib3.util.retry.Retry(False)
to disable the retry logic in our project - we want the underlying proxy error.Expected Behavior
No unclosed socket warning
Actual Behavior
What happens instead.
You may attach logs, packet captures, etc.
If I remove the
retries
parameter to use the default we get even more unclosed socket warnings:The text was updated successfully, but these errors were encountered: