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

Ignore ECONNRESET on close #787

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Conversation

talex5
Copy link
Collaborator

@talex5 talex5 commented Dec 2, 2024

FreeBSD returns ECONNRESET in certain (unclear) circumstances, but it does still close the FD successfully. If you care about this case, you should probably use shutdown instead and check for it there.

Python and Ruby at least both explicitly check for and ignore this error too.

Fixes #786 I hope, though I can't reproduce it locally.

FreeBSD returns ECONNRESET in certain (unclear) circumstances, but it
does still close the FD successfully. If you care about this case, you
should probably use `shutdown` instead and check for it there.

Python and Ruby at least both explicitly check for and ignore this error
too.
@talex5 talex5 merged commit f195295 into ocaml-multicore:main Dec 6, 2024
4 of 5 checks passed
@talex5 talex5 deleted the freebsd-close branch December 6, 2024 09:02
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.

close can fail on FreeBSD with ECONNRESET
1 participant