Commit 5ed6ac60 authored by Martin Hurton's avatar Martin Hurton

Adjust number of sent messages on hiccups

Not adjusting the sent message count may lead to situation when SUB
socket does not forward its subscriptions.
parent e05c8056
......@@ -267,6 +267,8 @@ void zmq::pipe_t::process_hiccup (void *pipe_)
outpipe->flush ();
msg_t msg;
while (outpipe->read (&msg)) {
if (!(msg.flags () & msg_t::more))
msgs_written--;
int rc = msg.close ();
errno_assert (rc == 0);
}
......
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