mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-26 18:42:43 +01:00
Fix small streamengine issue w/ term and handshake
Also tidy up monitor test a little.
This commit is contained in:
@@ -642,6 +642,12 @@ void zmq::stream_engine_t::mechanism_ready ()
|
||||
msg_t identity;
|
||||
mechanism->peer_identity (&identity);
|
||||
const int rc = session->push_msg (&identity);
|
||||
if (rc == -1 && errno == EAGAIN) {
|
||||
// If the write is failing at this stage with
|
||||
// an EAGAIN the pipe must be being shut down,
|
||||
// so we can just bail out of the identity set.
|
||||
return;
|
||||
}
|
||||
errno_assert (rc == 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user