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

Add more errors to ignore list in UDP socket #2310

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

repeatedly
Copy link
Member

UDPServer overwrites Cool.io's IO#on_readable so
it should handle unrecoverable IO error like TCPSocket.

https://github.com/tarcieri/cool.io/blob/c79b4dff788071fcc45fac838d5d76dc645b8c1d/lib/cool.io/io.rb#L128

UDP's stream model is different from TCP. Some errors, e.g. EOFError, don't happen.
Related with #2292

Signed-off-by: Masahiro Nakagawa [email protected]

UDPServer overwrites Cool.io's IO#on_readable so
it should handle unrecoverable IO error like TCPSocket.

https://github.com/tarcieri/cool.io/blob/c79b4dff788071fcc45fac838d5d76dc645b8c1d/lib/cool.io/io.rb#L128

Signed-off-by: Masahiro Nakagawa <[email protected]>
Copy link
Contributor

@cosmo0920 cosmo0920 left a comment

Choose a reason for hiding this comment

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

Yup. Looks good! 👍

@repeatedly repeatedly merged commit 0db9e43 into master Feb 25, 2019
@repeatedly repeatedly deleted the fix-udp-error-handling branch February 25, 2019 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants