Skip to content

AsyncClient with retries and a "super-proxy" #3347

Answered by Ch00k
Ch00k asked this question in Q&A
Discussion options

You must be logged in to vote

The behaviour I see is indeed caused by connection pooling, because if I apply httpx.Limits(max_keepalive_connections=0) I am not getting 403s anymore. Which means that the keep-alive connection does include the connection to the proxy, which it its turn is once again proven by the fact that in httpcore HTTPProxy in subclass of ConnectionPool.

My guess is it would not be possible to use connection pooling with a "super-proxy" if you want the "super-proxy" to do what it is supposed to do - give you a random proxy IP every time.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Ch00k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant