Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch TimeoutError #635

Closed

Conversation

bokolob
Copy link

@bokolob bokolob commented Feb 10, 2021

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.

@miguelgrinberg
Copy link
Owner

Any idea what's the equivalent error for aioredis so that both are fixed in parity?

@miguelgrinberg miguelgrinberg self-assigned this Feb 10, 2021
@bokolob
Copy link
Author

bokolob commented Feb 10, 2021

No idea yet, I don't use async server :( It's unclear from the first glance and needs some investigation.

@bokolob
Copy link
Author

bokolob commented Feb 15, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants