mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 16:06:09 +00:00
Problem: zap_connect() asserts on write fail (yet returns fail codes).
This commit is contained in:
parent
a0ccdc866e
commit
29a5c98d83
@ -353,9 +353,10 @@ int zmq::session_base_t::zap_connect ()
|
|||||||
rc = id.init ();
|
rc = id.init ();
|
||||||
errno_assert (rc == 0);
|
errno_assert (rc == 0);
|
||||||
id.set_flags (msg_t::identity);
|
id.set_flags (msg_t::identity);
|
||||||
bool ok = zap_pipe->write (&id);
|
if (zap_pipe->write (&id))
|
||||||
zmq_assert (ok);
|
zap_pipe->flush ();
|
||||||
zap_pipe->flush ();
|
else
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user