-
Notifications
You must be signed in to change notification settings - Fork 24
Fix #157 #169
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
Fix #157 #169
Conversation
|
Uhm, that looks potentially dangerous if msgSize > ZMQ_SEND_BUFFER_SIZE |
|
Updated |
| { | ||
| detail::Socket pollItem; | ||
| pollItem.socket = socket; | ||
| pollItem.events = ZMQ_POLLERR; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| POLLOUT?
|
Test for overflowing send buffer? +1 otherwise. |
|
Tried the overflow test, no luck yet... |
| if( ::zmq_poll( &pollItem, 1, timeout == TIMEOUT_INDEFINITE | ||
| ? -1 : timeout ) > 0 ) | ||
| { | ||
| // client still alive, send again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if( socket.revents & ZMQ_POLLOUT ) return true;
// else POLLERR
return false;
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Seems on OSX the socket is not cleaned/closed like on Unix...
|
POLLOUT won't work on OSX. Remove? |
No description provided.