-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add additional close statuses in ManagedWebSocket #83827
Commits on Mar 30, 2023
-
Allow non RFC close statuses in ManagedWebSocket
Add ServiceRestart (1012), TryAgainLater (1013), and BadGateway (1014) to the list of `WebSocketCloseStatus` values and allow them to be used as valid WebSocket close statuses so we don't reject the close and discard the status description by adding them to the private `IsValueCloseStatus` method switch statement declaring them as valid `true`. These codes are documented [here as IANA registered codes](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/code) as valid server-initiated close reasons. Fixes Issue dotnet#82602
Configuration menu - View commit details
-
Copy full SHA for 5081756 - Browse repository at this point
Copy the full SHA 5081756View commit details -
Co-authored-by: MartyIX <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e06f810 - Browse repository at this point
Copy the full SHA e06f810View commit details -
Rename test data to CloseStatuses
Co-authored-by: Natalia Kondratyeva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 76f873a - Browse repository at this point
Copy the full SHA 76f873aView commit details -
Rename test method to follow naming convention.
Co-authored-by: Natalia Kondratyeva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4ae46f0 - Browse repository at this point
Copy the full SHA 4ae46f0View commit details -
Finished rename of CloseStatuses test data Renamed `closeStatusDescription` to `serverMessage` Send hello message and close status then await both responses and check they are as expected. This necessitated switching to the `ReceiveAsync` that accepts an `ArraySegment`. Explicitly typed `var`s Inlined helper methods (for clarity)
Configuration menu - View commit details
-
Copy full SHA for 8a2cc0a - Browse repository at this point
Copy the full SHA 8a2cc0aView commit details -
Rename local for per PR feedback
Swapping back to a distinct and more appropriately named variable for the `closeStatusDescription` Co-authored-by: Natalia Kondratyeva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e479a56 - Browse repository at this point
Copy the full SHA e479a56View commit details -
Label the boolean for isServer flag
Co-authored-by: Natalia Kondratyeva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9e15dec - Browse repository at this point
Copy the full SHA 9e15decView commit details -
Use better local variable name
Renamed local `serverMessage` back to `closeStatusDescription` per PR feedback. Co-authored-by: Natalia Kondratyeva <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e349b33 - Browse repository at this point
Copy the full SHA e349b33View commit details -
Rebased to current main, updated the commit messages and added the remaining changes to address the PR comments.
Configuration menu - View commit details
-
Copy full SHA for 1633968 - Browse repository at this point
Copy the full SHA 1633968View commit details