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

[main] guard agains empty Accept address #108616

Merged
merged 4 commits into from
Oct 24, 2024
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 7, 2024

Fixes #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.

Copy link
Contributor

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

Copy link
Member

@antonfirsov antonfirsov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wfurt wfurt merged commit 0690680 into main Oct 24, 2024
81 of 83 checks passed
@wfurt wfurt deleted the backport/pr-108334-to-main branch October 24, 2024 15:43
@github-actions github-actions bot locked and limited conversation to collaborators Nov 24, 2024
@karelz karelz added this to the 10.0.0 milestone Dec 5, 2024
@wfurt
Copy link
Member

wfurt commented Jan 13, 2025

/backport to /release/9.0-staging

Copy link
Contributor Author

Started backporting to /release/9.0-staging: https://github.com/dotnet/runtime/actions/runs/12754845439

@github-actions github-actions bot unlocked this conversation Jan 13, 2025
Copy link
Contributor Author

@wfurt an error occurred while backporting to "/release/9.0-staging", please check the run log for details!

Error: The specified backport target branch "/release/9.0-staging" wasn't found in the repo.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 13, 2025
@wfurt
Copy link
Member

wfurt commented Jan 13, 2025

/backport to release/9.0-staging

@github-actions github-actions bot unlocked this conversation Jan 13, 2025
Copy link
Contributor Author

Started backporting to release/9.0-staging: https://github.com/dotnet/runtime/actions/runs/12754885863

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unhandled exception from AcceptCompletionCallback
4 participants