[zeromq-dev] Empty message does not close ZMQ_STREAM socket?

Osiris Pedroso opedroso at gmail.com
Tue Mar 22 15:03:41 CET 2016


If I am completely off here, please let me know (still learning ZMQ):

    server.send(id, ZMQ_SNDMORE);
    server.send(empty, ZMQ_SNDMORE );

But I don't think you should have the ZMQ_SENDMORE flag on the second
send() call.

Otherwise the message will not be sent, instead waiting for another call to
send() without the flag which only then commits the message to be sent by
underlying code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160322/48c026dd/attachment.htm>


More information about the zeromq-dev mailing list