-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix timer handle churn in websocket heartbeat #8608
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
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
c48ad39
Fix timer handle churn in websocket heartbeat
bdraco ab09f18
preen
bdraco f59f732
preen
bdraco 4ea43f9
fix merge
bdraco b1ed054
fix merge
bdraco 807e334
fix merge
bdraco c3ca179
fix merge
bdraco 8d0756b
fix merge
bdraco 3321b93
fix merge
bdraco 9a92850
fix merge
bdraco abc1d80
fix merge
bdraco 5cb41f3
fix merge
bdraco 179b0d5
add coverage for pong after many messages
bdraco fb71f93
changelog
bdraco 0c84a8b
Update CHANGES/8608.misc.rst
bdraco 02bd5c6
Update CHANGES/8608.misc.rst
bdraco 53f1b46
Update tests/test_client_ws_functional.py
bdraco 1767cec
more coverage
bdraco 84ae4b3
ensure heartbeat timer is always canceled on close
bdraco e4747e5
Merge branch 'master' into timer_handle_churn
bdraco 40945e7
cleanup assertions
bdraco e622cde
remove unreachable
bdraco c29f5c6
restore
bdraco d9f6978
add coverage for connection lost
bdraco 77eee1a
combine with
bdraco be4441a
cleanup tests
bdraco 286a29b
cleanup tests
bdraco 6e7fa77
Update aiohttp/helpers.py
bdraco 7a5f09e
Merge branch 'master' into timer_handle_churn
bdraco f533e86
lint
bdraco 5eec564
fix type
bdraco 5e7230b
fix type
bdraco 59df3db
test the sending many in handler case as well
bdraco 7807ce9
Merge branch 'master' into timer_handle_churn
bdraco f9c6027
adjust test to make sure we reschedule once
bdraco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Improved websocket performance when messages are sent or received frequently -- by :user:`bdraco`. | ||
|
||
The WebSocket heartbeat scheduling algorithm was improved to reduce the ``asyncio`` scheduling overhead by decreasing the number of ``asyncio.TimerHandle`` creations and cancellations. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.