Commit 52eaf600 authored by Martin Sustrik's avatar Martin Sustrik

Drop outbound messages in XREP socket when SNDHWM is reached

Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent aa2150c2
......@@ -73,11 +73,8 @@ int zmq::rep_t::xrecv (msg_t *msg_, int flags_)
return rc;
if (!(msg_->flags () & msg_t::label))
break;
// TODO: If the reply cannot be sent to the peer because
// od congestion, we should drop it.
rc = xrep_t::xsend (msg_, flags_);
zmq_assert (rc == 0);
errno_assert (rc == 0);
}
request_begins = false;
}
......
......@@ -145,10 +145,6 @@ int zmq::xrep_t::xsend (msg_t *msg_, int flags_)
it->second.active = false;
more_out = false;
current_out = NULL;
rc = empty.close ();
errno_assert (rc == 0);
errno = EAGAIN;
return -1;
}
rc = empty.close ();
errno_assert (rc == 0);
......
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