Skip to content

Bugfixes#24

Merged
danielfoord merged 9 commits intomasterfrom
bugfixes/async
Jul 23, 2025
Merged

Bugfixes#24
danielfoord merged 9 commits intomasterfrom
bugfixes/async

Conversation

@danielfoord
Copy link
Copy Markdown
Owner

No description provided.

danielfoord and others added 9 commits July 17, 2025 18:49
Renamed variables for consistency and clarity in EchoServer. Improved connection counting and locking in WebSocketServer, removed unnecessary async void usage, and moved connection management logic to use proper locking. Added disposal flags to prevent double disposal in Connection and WebSocketServer. Updated FrameHeaders XML comments and refactored payload length check for readability.
Disabled the Console.WriteLine statement in the OnFrame event handler to reduce console output, for cleaner logs or performance reasons.
Removed unnecessary comments from WebSocketServer.cs for cleaner code. Updated OpCode enum in Framing to explicitly use byte as the underlying type for clarity and protocol compliance.
Replaced the for-loop with Array.Fill to initialize the masking key array, improving code readability and conciseness.
Changed the target framework from net6.0 to net9.0 in both Sox.EchoServer and Sox.Tests projects to support the latest .NET features and improvements.
@danielfoord danielfoord merged commit b39b6a8 into master Jul 23, 2025
4 checks passed
@danielfoord danielfoord deleted the bugfixes/async branch July 23, 2025 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants