Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dnachbaur
Copy link
Contributor

No description provided.

@eile
Copy link
Contributor

eile commented May 31, 2016

Uhm, that looks potentially dangerous if msgSize > ZMQ_SEND_BUFFER_SIZE

@dnachbaur
Copy link
Contributor Author

Updated

{
detail::Socket pollItem;
pollItem.socket = socket;
pollItem.events = ZMQ_POLLERR;
Copy link
Contributor

Choose a reason for hiding this comment

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

| POLLOUT?

@eile
Copy link
Contributor

eile commented Jun 1, 2016

Test for overflowing send buffer?

+1 otherwise.

@dnachbaur
Copy link
Contributor Author

Tried the overflow test, no luck yet...

if( ::zmq_poll( &pollItem, 1, timeout == TIMEOUT_INDEFINITE
? -1 : timeout ) > 0 )
{
// client still alive, send again
Copy link
Contributor

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;

?

Copy link
Contributor Author

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...

@dnachbaur
Copy link
Contributor Author

POLLOUT won't work on OSX. Remove?

@dnachbaur dnachbaur merged commit aab499d into HBPVIS:master Jun 1, 2016
@dnachbaur dnachbaur deleted the 157 branch June 1, 2016 13:57
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