Commit ac90b7e0 authored by Brian Buchanan's avatar Brian Buchanan Committed by Martin Sustrik

issue 35 - ZMQ_RCVMORE sometimes erroneously returns false

parent 5ee355d1
...@@ -5,6 +5,7 @@ Alexej Lotz <alexej.lotz@arcor.de> ...@@ -5,6 +5,7 @@ Alexej Lotz <alexej.lotz@arcor.de>
Asko Kauppi <askok@dnainternet.net> Asko Kauppi <askok@dnainternet.net>
Barak Amar <barak.amar@gmail.com> Barak Amar <barak.amar@gmail.com>
Bernd Prager <bernd@prager.ws> Bernd Prager <bernd@prager.ws>
Brian Buchanan <bwb@holo.org>
Chris Wong <chris@chriswongstudio.com> Chris Wong <chris@chriswongstudio.com>
Conrad D. Steenberg <conrad.steenberg@caltech.edu> Conrad D. Steenberg <conrad.steenberg@caltech.edu>
Dhruva Krishnamurthy <dhruva@ymail.com> Dhruva Krishnamurthy <dhruva@ymail.com>
......
...@@ -424,7 +424,14 @@ int zmq::socket_base_t::recv (::zmq_msg_t *msg_, int flags_) ...@@ -424,7 +424,14 @@ int zmq::socket_base_t::recv (::zmq_msg_t *msg_, int flags_)
return -1; return -1;
} }
ticks = 0; ticks = 0;
return xrecv (msg_, flags_);
rc = xrecv (msg_, flags_);
if (rc == 0) {
rcvmore = msg_->flags & ZMQ_MSG_MORE;
if (rcvmore)
msg_->flags &= ~ZMQ_MSG_MORE;
}
return rc;
} }
// In blocking scenario, commands are processed over and over again until // In blocking scenario, commands are processed over and over again until
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment