Timeout during AnyIOStream.start_tls causes stuck connections in the pool when using AsyncHTTPProxy #905
Unanswered
ariallas
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Example
Hi!
Please excuse my hacky way to demonstrate the issue:
Setup:
To replicate:
proxy.py
:proxy --hostname 127.0.0.1 --port 8080
You should see that every time a timeout happens during
start_tls
, after just having reconnected to the proxy, there is a new stuck connection in the pool that looks like this:<AsyncTunnelHTTPConnection ['http://127.0.0.1:8080', HTTP/1.1, ACTIVE, Request Count: 1]>
Context
We have a bunch of Telegram bots on
python-telegram-bot
running behind a proxy. Once every couple of weeks they all simultaneously stop responding - judging by the logs this seems to be the root issue.Beta Was this translation helpful? Give feedback.
All reactions