mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-03 21:06:28 +01:00
reset socket state when identity message cannot be written to xrep
Signed-off-by: Jon Dyte <jon@totient.co.uk>
This commit is contained in:
parent
7045a4a213
commit
b79d07b8bc
@ -184,9 +184,11 @@ int zmq::xrep_t::xsend (zmq_msg_t *msg_, int flags_)
|
|||||||
int rc = zmq_msg_init (&empty);
|
int rc = zmq_msg_init (&empty);
|
||||||
zmq_assert (rc == 0);
|
zmq_assert (rc == 0);
|
||||||
if (!current_out->check_write (&empty)) {
|
if (!current_out->check_write (&empty)) {
|
||||||
|
it->second.active = false;
|
||||||
|
more_out = false;
|
||||||
|
current_out = NULL;
|
||||||
rc = zmq_msg_close (&empty);
|
rc = zmq_msg_close (&empty);
|
||||||
zmq_assert (rc == 0);
|
zmq_assert (rc == 0);
|
||||||
it->second.active = false;
|
|
||||||
errno = EAGAIN;
|
errno = EAGAIN;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user