mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-31 22:45:38 +01:00
Merge branch '46_device_robustness'
This commit is contained in:
commit
87612be91d
@ -143,8 +143,11 @@ int zmq::xrep_t::xsend (zmq_msg_t *msg_, int flags_)
|
|||||||
if (!more_out) {
|
if (!more_out) {
|
||||||
zmq_assert (!current_out);
|
zmq_assert (!current_out);
|
||||||
|
|
||||||
// There's no such thing as prefix with no subsequent message.
|
// If we have malformed message (prefix with no subsequent message)
|
||||||
zmq_assert (msg_->flags & ZMQ_MSG_MORE);
|
// then just silently drop the message.
|
||||||
|
if ((msg_->flags & ZMQ_MSG_MORE) == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
more_out = true;
|
more_out = true;
|
||||||
|
|
||||||
// Find the pipe associated with the identity stored in the prefix.
|
// Find the pipe associated with the identity stored in the prefix.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user