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

CoreExceptionHandler should ignore all occurrences of ConnectionResetError #7566

Merged

Conversation

kozlovsky
Copy link
Collaborator

This PR fixes #7556. ConnectionResetError means that a client dropped a connection to the AIOHTTP server before the response was sent back. On the server side, it is not an error and should be ignored.

Before this fix, only ConnectionResetError with error code 10054 is ignored. When aiohttp raises ConnectionResetError, it does not specify any error code, so all instances of ConnectionResetError should be ignored, disregarding the error code.

Previously there were two groups of errors ignored by SentryReporter: IGNORED_ERRORS_BY_CODE and IGNORED_ERRORS_BY_REGEX. The PR adds a third group, IGNORED_ERRORS_BY_CLASS.

@kozlovsky kozlovsky marked this pull request as ready for review August 8, 2023 13:57
@kozlovsky kozlovsky requested a review from a team as a code owner August 8, 2023 13:57
@kozlovsky kozlovsky requested review from drew2a and xoriole and removed request for a team and drew2a August 8, 2023 13:57
@kozlovsky kozlovsky merged commit f0d5b70 into Tribler:release/7.13 Aug 9, 2023
29 checks passed
@kozlovsky kozlovsky deleted the fix/ignore_connection_reset_error branch August 9, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants