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

kqueue: Ignore EPIPE coming out of kevent #584

Merged
merged 1 commit into from
Apr 7, 2017
Merged

Conversation

carllerche
Copy link
Member

This commit updates mio to ignore EPIPE coming out of kevent. It
turns out that older versions of OSX (10.10 and 10.11 have been
confirmed) will return an EPIPE when registering one half of a pipe
where the other half has been closed. On other platforms this is an ok
operation which just returns that the pipe is readable/writable (to
return an error/eof), so this brings the OSX behavior in line by
ignoring the error and moving to the next event.

Closes #582

This is a dup of #583... but appveyor is stuck, so I have no idea what else to do :(

This commit updates mio to ignore `EPIPE` coming out of `kevent`. It
turns out that older versions of OSX (10.10 and 10.11 have been
confirmed) will return an `EPIPE` when registering one half of a pipe
where the other half has been closed. On other platforms this is an ok
operation which just returns that the pipe is readable/writable (to
return an error/eof), so this brings the OSX behavior in line by
ignoring the error and moving to the next event.

Closes #582
@carllerche carllerche merged commit fe551aa into master Apr 7, 2017
@carllerche carllerche deleted the ignore-epipe-osx branch April 24, 2017 19:15
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.

suspicion: EPIPE coming out of register on OSX
2 participants