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

Ignore internal ConnectionResetErrors #8404

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

qstokkink
Copy link
Contributor

Fixes #8355

This PR:

  • Updates _except_hook to ignore ConnectionResetError.

These exceptions are a result of our connections, but they escape our control and get raised internally (CPython issue 116091). So, I think this is the only way to handle the error.

@qstokkink
Copy link
Contributor Author

validate

@qstokkink qstokkink changed the title Ignore internal ConnectionResetErrors READY: Ignore internal ConnectionResetErrors Jan 21, 2025
@qstokkink qstokkink marked this pull request as ready for review January 21, 2025 09:55
@qstokkink qstokkink changed the title READY: Ignore internal ConnectionResetErrors Ignore internal ConnectionResetErrors Jan 21, 2025
@qstokkink qstokkink merged commit e153da9 into Tribler:main Jan 21, 2025
7 checks passed
@qstokkink qstokkink deleted the fix_uncaught_netwreset branch January 21, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

ConnectionResetError when connected to unstable Wi-Fi
2 participants