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

[release/8.0-staging] fix SendTo with SocketAsyncEventArgs #99695

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 13, 2024

Backport of #98134 to release/8.0-staging

Fixes #97965 and #99863 -- a regression from PR #90086 (in 8.0).

/cc @wfurt

Customer Impact

This is regression caused by 8.0 changes (PR #90086). Traditionally it is possible to use SocketAsyncEventArgs multiple times but that no longer works for SendTo method. Starting with 8.0 we either fail to send the data or we can send them to wrong endpoint which leads to privacy concerns.
Reported by 2 external customers in #97965 and #99863

Regression

Yes, introduced by PR #90086

Testing

Added targeted test case for reusing SocketAsyncEventArgs with SendTo method.
Validated by a customer on 9.0 build with the fix.

Risk

Small - scoped only to UDP code path using SocketAsyncEventArgs (Task-based and synchronous code paths are OK) ... which is a rarely used combo.
The fix is relatively small and the issue is fully understood.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@karelz karelz added this to the 8.0.x milestone Mar 26, 2024
@karelz karelz added the Servicing-consider Issue for next servicing release review label Mar 26, 2024
@karelz
Copy link
Member

karelz commented Mar 26, 2024

It is a regression in 8.0, preventing customers to send data where they want. We should fix it.

@wfurt wfurt added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Apr 17, 2024
@wfurt
Copy link
Member

wfurt commented Apr 17, 2024

approved via email

@wfurt
Copy link
Member

wfurt commented Apr 17, 2024

test failure is unrelated

@wfurt wfurt merged commit d3da39d into release/8.0-staging Apr 17, 2024
106 of 110 checks passed
@jkotas jkotas deleted the backport/pr-98134-to-release/8.0-staging branch April 27, 2024 22:49
@github-actions github-actions bot locked and limited conversation to collaborators May 28, 2024
@karelz karelz modified the milestones: 8.0.x, 8.0.7 Jun 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Sockets Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants