mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 02:42:58 +01:00
Return -1 when failed to publish message
This commit is contained in:
parent
228426ac44
commit
214553972d
@ -131,8 +131,10 @@ int zmq::xpub_t::xsend (msg_t *msg_)
|
|||||||
subscriptions.match ((unsigned char*) msg_->data (), msg_->size (),
|
subscriptions.match ((unsigned char*) msg_->data (), msg_->size (),
|
||||||
mark_as_matching, this);
|
mark_as_matching, this);
|
||||||
|
|
||||||
if (nodrop && !dist.check_hwm ())
|
if (nodrop && !dist.check_hwm ()) {
|
||||||
return EAGAIN;
|
errno = EAGAIN;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
// Send the message to all the pipes that were marked as matching
|
// Send the message to all the pipes that were marked as matching
|
||||||
// in the previous step.
|
// in the previous step.
|
||||||
|
Loading…
Reference in New Issue
Block a user