Skip to content

Commit

Permalink
Merge branch 'master' of github.com:zeromq/zeromq2-2
Browse files Browse the repository at this point in the history
  • Loading branch information
hintjens committed Jul 31, 2011
2 parents 247dee1 + b6f45fe commit 5541600
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/socket_base.cpp
Expand Up @@ -492,6 +492,8 @@ int zmq::socket_base_t::send (::zmq_msg_t *msg_, int flags_)
rc = xsend (msg_, flags_);
if (rc == 0)
return 0;
if (unlikely (errno != EAGAIN))
return -1;

// In case of non-blocking send we'll simply propagate
// the error - including EAGAIN - upwards.
Expand Down Expand Up @@ -541,6 +543,8 @@ int zmq::socket_base_t::recv (::zmq_msg_t *msg_, int flags_)

// Get the message.
int rc = xrecv (msg_, flags_);
if (unlikely (rc != 0 && errno != EAGAIN))
return -1;
int err = errno;

// Once every inbound_poll_rate messages check for signals and process
Expand Down

0 comments on commit 5541600

Please sign in to comment.