Unverified Commit b3d19ffe authored by Simon Giesecke's avatar Simon Giesecke Committed by GitHub

Merge pull request #2813 from AntonBarwald/master

Problem: Sometimes on OSX we get ETIMEDOUT instead of EAGAIN
parents 812e7562 630f6d6a
...@@ -553,6 +553,10 @@ int zmq::socket_poller_t::wait (zmq::socket_poller_t::event_t *events_, ...@@ -553,6 +553,10 @@ int zmq::socket_poller_t::wait (zmq::socket_poller_t::event_t *events_,
#elif defined ZMQ_HAVE_ANDROID #elif defined ZMQ_HAVE_ANDROID
usleep (timeout_ * 1000); usleep (timeout_ * 1000);
return -1; return -1;
#elif defined ZMQ_HAVE_OSX
usleep (timeout_ * 1000);
errno = EAGAIN;
return -1;
#else #else
usleep (timeout_ * 1000); usleep (timeout_ * 1000);
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment