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

fix: handle ConnectionError in rapu._handle_messages #862

Merged

Conversation

jjaakola-aiven
Copy link
Contributor

About this change - What it does

If client connection is broken there is nothing the server can do. Handle the specific case and silence stats and reporting. The aiohttp expects a response object, although this is not and cannot be written to client as the connection is already broken.

@jjaakola-aiven jjaakola-aiven requested review from a team as code owners May 6, 2024 09:16
aiven-anton
aiven-anton previously approved these changes May 6, 2024
tests/unit/test_rapu.py Outdated Show resolved Hide resolved
nosahama
nosahama previously approved these changes May 6, 2024
If client connection is broken there is nothing the server
can do. Handle the specific case and silence stats and reporting.
The aiohttp expects a response object, although this is not and
cannot be written to client as the connection is already broken.
@jjaakola-aiven jjaakola-aiven dismissed stale reviews from nosahama and aiven-anton via 79fb21a May 6, 2024 11:29
@jjaakola-aiven jjaakola-aiven force-pushed the jjaakola-aiven-handle-connection-error-in-request-handling branch from 2782bd5 to 79fb21a Compare May 6, 2024 11:29
@aiven-anton aiven-anton merged commit ee94d17 into main May 7, 2024
8 checks passed
@aiven-anton aiven-anton deleted the jjaakola-aiven-handle-connection-error-in-request-handling branch May 7, 2024 07:41
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.

3 participants