Catch TimeoutError#635
Conversation
|
Any idea what's the equivalent error for |
|
No idea yet, I don't use async server :( It's unclear from the first glance and needs some investigation. |
|
By the way - It's very upsetting when thread dies, and the rest of the application continues to live. I'd fix that - register a callback to call if thread stop, or crash the whole app (in flask-socketio case) |
|
Hi @miguelgrinberg! I’m noticing an increase in the number of Redis connections (I’d expect a single connection per instance), and I suspect it might be related to this issue. I saw your commit - since |
Some network problems could cause TimeoutError, but it isn't handled. Moreover, the thread dies silently without any attempts to recover.
The bug can be also reproduced by setting the socket timeout option in Redis URL.
Probably there are other exceptions that should be retried as well, e.g BusyLoadingError.