Skip to content

Conversation

@Mukikaizoku
Copy link
Collaborator

When attempting to update a consuming application to a newer version of dotnet (specifically .NET 6), certain Hazel related tests would fail.

Turned out that, on dispose, ThreadLimitedUdpConnectionListener would clean up threads out of order, causing the chance of an unhandled socket exception (ie. Shutdown called on the socket before a thread tries to use the socket). It's a mystery why the tests would by-chance work previously all the time and then start to fail consistently post dotnet upgrade.

Likewise, upgrading Hazel to .NET 6 also caused tests to fail. So that was used as a test case for testing the fixes made.

@willardf willardf merged commit 6c0905a into main Jan 24, 2025
5 checks passed
@willardf willardf deleted the fix-socketexception-on-dispose branch January 24, 2025 21:43
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.

4 participants