- Notifications
You must be signed in to change notification settings - Fork5.2k
Utilize new APIs in the WebSocket implementation#101953
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
19 commits Select commitHold shift + click to select a range
46cb6dd Use BinaryPrimitives in ManagedWebSocket
PaulusParssinena091b09 Use MemoryMarshal.CreateSpan instead of .ctor in WebSocketInflater
PaulusParssinen4708726 Apply PR suggestion
PaulusParssinena8662ea Merge branch 'main' into use-new-apis-in-ws
PaulusParssinen76466ff Merge branch 'main' into use-new-apis-in-ws
PaulusParssinen2868bd6 Use BinaryPrimitives in more places
PaulusParssinen505f111 Restore the behavior where mask is stored in machine-endianness
PaulusParssinen820dc04 Remove unused using directives
PaulusParssinen79ab34b Read the payload length as unsigned for 16-bit case
PaulusParssinenc515ba9 Consolidate some validation logic to WebSocketValidata.cs
PaulusParssinen053f0ac Remove unused ValidateBuffer
PaulusParssinen953fe66 Use new throw helpers in ValueWebSocketReceiveResult
PaulusParssinene3e7a01 Use ValueTask.FromException
PaulusParssinen9888a37 Revert "Remove unused ValidateBuffer"
PaulusParssinen9783f98 Oops
PaulusParssinen26da64c Fix ArgumentNullException for ValidateArraySegment
PaulusParssinen92b05a3 Revert "Consolidate some validation logic to WebSocketValidata.cs"
PaulusParssinen7509610 Revert ValueWebSocketReceiveResult.ThrowMessageTypeOutOfRange
PaulusParssinenb0af53a Revert "Remove unused using directives"
PaulusParssinenFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Revert "Consolidate some validation logic to WebSocketValidata.cs"
This reverts commitc515ba9.
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit92b05a3303d3fa4ab116d6cb4706df105d8edf1c
There are no files selected for viewing
48 changes: 14 additions & 34 deletionssrc/libraries/Common/src/System/Net/WebSockets/WebSocketValidate.cs
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
23 changes: 16 additions & 7 deletionssrc/libraries/System.Net.WebSockets/src/System/Net/WebSockets/ManagedWebSocket.cs
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
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.