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

UDP engine aborts on networking-related errors from socket syscalls (2) #2862 #3640

Merged
merged 5 commits into from
Aug 25, 2019

Conversation

atomashpolskiy
Copy link
Contributor

Follow-up for UDP send/receive. Also updated plug function to terminate session only when setsockopt failed, and request reconnection otherwise. Still haven't looked into how socket monitoring events work, so error handling happens silently.

Note that I added EAGAIN/EWOULDBLOCK and EPIPE in the list of "recoverable" errors.

src/ip.cpp Outdated
|| errno == EINTR || errno == ETIMEDOUT || errno == EHOSTUNREACH
|| errno == ENETUNREACH || errno == ENETDOWN || errno == ENETRESET
|| errno == EINVAL || errno == EADDRINUSE || errno == EACCES
|| errno == EWOULDBLOCK || errno == EAGAIN || errno == EPIPE);
Copy link
Member

Choose a reason for hiding this comment

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

Please do not add new errors mixed in with refactoring. It needs to be carefully weighted and tested to avoid introducing deadlocks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, sure! So did unittest_poller keep running because I made some errors non-critical?

Copy link
Member

Choose a reason for hiding this comment

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

Not sure - should be investigated

…eromq#2862 (revert changes in error list in zmq::assert_success_or_recoverable)
@bluca bluca merged commit 2aa87c9 into zeromq:master Aug 25, 2019
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.

2 participants