mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 12:18:04 +01:00
issue 28. - SNDMORE/ RCVMORE is dropping every other message
This commit is contained in:
@@ -226,11 +226,11 @@ int zmq::req_t::xrecv (zmq_msg_t *msg_, int flags_)
|
|||||||
zmq_assert (zmq_msg_size (msg_) == 0);
|
zmq_assert (zmq_msg_size (msg_) == 0);
|
||||||
rc = zmq_msg_close (msg_);
|
rc = zmq_msg_close (msg_);
|
||||||
zmq_assert (rc == 0);
|
zmq_assert (rc == 0);
|
||||||
}
|
|
||||||
|
|
||||||
// Get the actual reply.
|
// Get the actual reply.
|
||||||
bool recvd = reply_pipe->read (msg_);
|
bool recvd = reply_pipe->read (msg_);
|
||||||
zmq_assert (recvd);
|
zmq_assert (recvd);
|
||||||
|
}
|
||||||
|
|
||||||
// If this was last part of the reply, switch to request phase.
|
// If this was last part of the reply, switch to request phase.
|
||||||
more = msg_->flags & ZMQ_MSG_MORE;
|
more = msg_->flags & ZMQ_MSG_MORE;
|
||||||
|
|||||||
Reference in New Issue
Block a user