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

guard agains empty Accept address #108334

Open
wants to merge 2 commits into
base: release/8.0-staging
Choose a base branch
from

Conversation

wfurt
Copy link
Member

@wfurt wfurt commented Sep 27, 2024

contributes to #108026 and #102663
This is a speculative fix based on feedback from @pepone.
It seems like in some cases accept on macOS does not return valid peer address and we throw on background thread.
This adds some guarding agains that to prevent thread termination.

I don't think workaround from #102663 (comment) is needed.
We already call getpeername if RemoteEndPoint is accessed and remote address is not available. It seems like we do not need it for anything else in CreateAcceptSocket and descendants.

@wfurt wfurt self-assigned this Sep 27, 2024
Copy link
Contributor

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

@wfurt
Copy link
Member Author

wfurt commented Oct 7, 2024

/backport to main

Copy link
Contributor

github-actions bot commented Oct 7, 2024

Started backporting to main: https://github.com/dotnet/runtime/actions/runs/11221178118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant