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

[3.10] WSS: Fix heartbeat timeout logic #8543

Closed
wants to merge 4 commits into from

Conversation

arcivanov
Copy link
Contributor

@arcivanov arcivanov commented Jul 28, 2024

Make sure to unblock the receive operation by feeding the receiver an error in a WSMessage

Change TimeoutError to ServerTimeoutError to accurately represent failure (this is backwards compatible since ServerTimeoutError has TimeoutError in the MRO)

fixes #8540

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
  • Add a new news fragment into the CHANGES/ folder

Make sure to unblock the `receive` operation by feeding the receiver an error in a `WSMessage`
Change `TimeoutError` to `ServerTimeoutError` to accurately represent failure (this is backwards compatible since `ServerTimeoutError` has `TimeoutError` in the MRO)

fixes aio-libs#8540
@arcivanov arcivanov requested a review from asvetlov as a code owner July 28, 2024 18:11
Copy link

codecov bot commented Jul 28, 2024

Codecov Report

Attention: Patch coverage is 92.59259% with 2 lines in your changes missing coverage. Please review.

Project coverage is 97.58%. Comparing base (df57b9f) to head (fa36007).
Report is 205 commits behind head on 3.10.

Files with missing lines Patch % Lines
tests/test_client_ws_functional.py 91.30% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             3.10    #8543      +/-   ##
==========================================
+ Coverage   97.57%   97.58%   +0.01%     
==========================================
  Files         108      108              
  Lines       33582    33606      +24     
  Branches     4029     4033       +4     
==========================================
+ Hits        32767    32795      +28     
+ Misses        594      591       -3     
+ Partials      221      220       -1     
Flag Coverage Δ
CI-GHA 97.49% <92.59%> (+0.01%) ⬆️
OS-Linux 97.16% <92.59%> (+0.01%) ⬆️
OS-Windows 94.68% <91.30%> (-0.01%) ⬇️
OS-macOS 96.83% <92.59%> (+0.02%) ⬆️
Py-3.10.11 96.93% <92.59%> (+<0.01%) ⬆️
Py-3.10.14 96.89% <92.59%> (+0.01%) ⬆️
Py-3.11.9 97.12% <92.59%> (+0.01%) ⬆️
Py-3.12.4 97.24% <92.59%> (+0.01%) ⬆️
Py-3.8.10 94.42% <91.30%> (-0.01%) ⬇️
Py-3.8.18 96.78% <92.59%> (+0.01%) ⬆️
Py-3.9.13 96.93% <92.59%> (+0.01%) ⬆️
Py-3.9.19 96.89% <92.59%> (+0.01%) ⬆️
Py-pypy7.3.16 96.46% <92.59%> (+0.01%) ⬆️
VM-macos 96.83% <92.59%> (+0.02%) ⬆️
VM-ubuntu 97.16% <92.59%> (+0.01%) ⬆️
VM-windows 94.68% <91.30%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arcivanov arcivanov requested a review from webknjaz as a code owner July 28, 2024 19:12
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Jul 28, 2024
@arcivanov arcivanov force-pushed the issue_8540_3.10 branch 3 times, most recently from d816fca to 32994c4 Compare July 28, 2024 21:11
@arcivanov
Copy link
Contributor Author

@bdraco @Dreamsorcerer Please provide feedback based on this PR and if satisfactory I'll adopt it to master as well.

Please let me know if you think documentation changes are necessary.

@bdraco
Copy link
Member

bdraco commented Aug 1, 2024

superseded by #8573

@bdraco bdraco closed this Aug 1, 2024
@arcivanov arcivanov deleted the issue_8540_3.10 branch August 9, 2024 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided There is a change note present in this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants