Skip to content
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

fix(UdpServer): Recycle event args for different remote endpoints #284

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rmja
Copy link

@rmja rmja commented Feb 1, 2024

This fixes an issue that is first seen in .NET 8 where the socket address is now internally cached inside the event args between calls (https://github.com/dotnet/runtime/blob/v8.0.1/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs#L3098-L3107). Without this fix, all socket operations will go to the first configured remote endpoint.

This fixes an issue that is first seen in .NET 8 where the socket address is now internally cached inside the event args between calls (https://github.com/dotnet/runtime/blob/v8.0.1/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs#L3098-L3107).
Without this fix, all socket operations will go to the first configured remote endpoint.
@rmja
Copy link
Author

rmja commented Feb 13, 2024

For reference, this was found to be a regression in .NET 8, see dotnet/runtime#97965 (comment).

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.

None yet

1 participant