Open plucked opened 2 months ago
Interesting, perhaps e.AcceptSocket.NoDelay = true;
can be moved into the try
that follows below that section, so that we do not pay for two try/catch sections.
Interesting, perhaps
e.AcceptSocket.NoDelay = true;
can be moved into thetry
that follows below that section, so that we do not pay for two try/catch sections.
If you or anyone can try this and verify that it fixes the problem, feel free to create a PR.
Describe the bug
Some unit tests are failing on macOS because of an exception while
e.AcceptSocket.NoDelay = true;
is called inGarnetServerTcp.HandleNewConnection
. It looks like that on macOS, the prior checkif (e.SocketError != SocketError.Success)
is false when it should be true.Replacing the code here to:
Allows me to have all the unit tests that were failing because of this to pass.
Callstack:
Steps to reproduce the bug
Expected behavior
The unit tests should pass
Screenshots
No response
Release version
main
IDE
Rider 2024.1.5
OS version
macOS 14.5
Additional context
No response