-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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 timer handle churn in websocket heartbeat #8608
Merged
Merged
Commits on Aug 5, 2024
-
Fix timer handle churn in websocket heartbeat
Each message would cancel and reset the timer handler which meant asyncio would have to rebuild the whole schedule heap frequently because so many timer handlers were being created and than cancelled. When asyncio timer handle cancels reach the threadhold the whole heap has to be rebuilt https://github.com/python/cpython/blob/1422500d020bd199b26357fc387f8b79b82226cd/Lib/asyncio/base_events.py#L1968 which is extremely inefficent. To solve this, when a timer handle is already running, instead of cancelling it, we let it fire and reschedule if heartbeat would be sent to early.
Configuration menu - View commit details
-
Copy full SHA for c48ad39 - Browse repository at this point
Copy the full SHA c48ad39View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab09f18 - Browse repository at this point
Copy the full SHA ab09f18View commit details -
Configuration menu - View commit details
-
Copy full SHA for f59f732 - Browse repository at this point
Copy the full SHA f59f732View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ea43f9 - Browse repository at this point
Copy the full SHA 4ea43f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1ed054 - Browse repository at this point
Copy the full SHA b1ed054View commit details -
Configuration menu - View commit details
-
Copy full SHA for 807e334 - Browse repository at this point
Copy the full SHA 807e334View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3ca179 - Browse repository at this point
Copy the full SHA c3ca179View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d0756b - Browse repository at this point
Copy the full SHA 8d0756bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3321b93 - Browse repository at this point
Copy the full SHA 3321b93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a92850 - Browse repository at this point
Copy the full SHA 9a92850View commit details -
Configuration menu - View commit details
-
Copy full SHA for abc1d80 - Browse repository at this point
Copy the full SHA abc1d80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cb41f3 - Browse repository at this point
Copy the full SHA 5cb41f3View commit details
Commits on Aug 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 179b0d5 - Browse repository at this point
Copy the full SHA 179b0d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb71f93 - Browse repository at this point
Copy the full SHA fb71f93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c84a8b - Browse repository at this point
Copy the full SHA 0c84a8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 02bd5c6 - Browse repository at this point
Copy the full SHA 02bd5c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53f1b46 - Browse repository at this point
Copy the full SHA 53f1b46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1767cec - Browse repository at this point
Copy the full SHA 1767cecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 84ae4b3 - Browse repository at this point
Copy the full SHA 84ae4b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e4747e5 - Browse repository at this point
Copy the full SHA e4747e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40945e7 - Browse repository at this point
Copy the full SHA 40945e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e622cde - Browse repository at this point
Copy the full SHA e622cdeView commit details -
Configuration menu - View commit details
-
Copy full SHA for c29f5c6 - Browse repository at this point
Copy the full SHA c29f5c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9f6978 - Browse repository at this point
Copy the full SHA d9f6978View commit details -
Configuration menu - View commit details
-
Copy full SHA for 77eee1a - Browse repository at this point
Copy the full SHA 77eee1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for be4441a - Browse repository at this point
Copy the full SHA be4441aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 286a29b - Browse repository at this point
Copy the full SHA 286a29bView commit details -
Co-authored-by: Sam Bull <git@sambull.org>
Configuration menu - View commit details
-
Copy full SHA for 6e7fa77 - Browse repository at this point
Copy the full SHA 6e7fa77View commit details
Commits on Aug 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7a5f09e - Browse repository at this point
Copy the full SHA 7a5f09eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f533e86 - Browse repository at this point
Copy the full SHA f533e86View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5eec564 - Browse repository at this point
Copy the full SHA 5eec564View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e7230b - Browse repository at this point
Copy the full SHA 5e7230bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 59df3db - Browse repository at this point
Copy the full SHA 59df3dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7807ce9 - Browse repository at this point
Copy the full SHA 7807ce9View commit details -
Configuration menu - View commit details
-
Copy full SHA for f9c6027 - Browse repository at this point
Copy the full SHA f9c6027View commit details
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.