timeout not respected with socks5 proxy #2951
Unanswered
a14n
asked this question in
Potential Issue
Replies: 1 comment
-
I have the same issue. So, it’s not a bug in The fix works, but is not merged yet. I understand working with a self-patched version is inconvenient, so I can suggest a workaround: -response = await async_client.get("http://www.protesa.net/", follow_redirects=False)
+response = await asyncio.wait_for(
+ async_client.get("http://www.protesa.net/", follow_redirects=False),
+ timeout=1,
+) It's not 100% the same, but can be a temporary solution in many cases. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
With
httpx[socks]==0.23.3
and the following code anhttpx.ReadTimeout
is raised only with https proxy and not with socks5 proxy. Is it an known issue?The output for socks5 proxy is:
The output for http proxy is:
Beta Was this translation helpful? Give feedback.
All reactions