-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fix WebSocket compressed sends to be cancellation safe #11726
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
31 commits
Select commit
Hold shift + click to select a range
328e3dc
make safe
bdraco 8648dcf
cleanup
bdraco 6976c6b
cleanup
bdraco 0c5584f
preen
bdraco 5b2ed4c
preen
bdraco 9bedc60
preen
bdraco 42b1183
preen
bdraco 61ab60b
preen
bdraco 8641759
preen
bdraco e8b11c5
preen
bdraco 50abe3e
lint
bdraco a98d709
lint
bdraco 9b28d0c
fix perf regression
bdraco e59a1ca
fix perf regression
bdraco 97c4de4
dry
bdraco 06ee7a0
remove duplicate paths
bdraco c7ff10e
remove duplicate paths
bdraco c22fd58
remove duplicate paths
bdraco 748d222
remove duplicate paths
bdraco 9f4de44
lint
bdraco 34f14aa
Sam's suggestion
bdraco 6de4509
document
bdraco 8340c18
document
bdraco 34bd39b
document
bdraco 262e45d
Merge branch 'master' into websocket_send_cancel_safe_large_payloads
bdraco dc12a01
hold strong references to tasks in flight
bdraco 65fbccf
Merge remote-tracking branch 'upstream/websocket_send_cancel_safe_lar…
bdraco 492cd15
cleanup
bdraco b4c5670
cleanup
bdraco c31b7db
address comments from code review
bdraco 7d6154e
spelling words
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 @@ | ||
| Fixed WebSocket compressed sends to be cancellation safe. Tasks are now shielded during compression to prevent compressor state corruption. This ensures that the stateful compressor remains consistent even when send operations are cancelled -- by :user:`bdraco`. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -305,6 +305,7 @@ SocketSocketTransport | |
| ssl | ||
| SSLContext | ||
| startup | ||
| stateful | ||
| subapplication | ||
| subclassed | ||
| subclasses | ||
|
|
||
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.