Skip to content

Conversation

@Alizter
Copy link
Collaborator

@Alizter Alizter commented Oct 31, 2025

When a socket is closed between accept() and setsockopt() due to a race condition it will raise EINVAL. Ignorance appears to be the usual way of dealing with this on macOS where this problem only occurs.

Fixes #12660 (?)

When a socket is closed between `accept()` and `setsockopt()` due to a
race condition it will raise EINVAL. Ignorance appears to be the usual
way of dealing with this on macOS where this problem only occurs.

Signed-off-by: Ali Caglayan <[email protected]>
@rgrinberg
Copy link
Member

I don't know if this is the right fix, but if it is, you should definitely try doing it in OCaml. The less C we have, the better.

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.

dune forwarding rpc occasionally gets EINVAL backtrace

2 participants