[zeromq-dev] HWM on ZMQ_PUB does not work for me (with code)

vincent freedom zpisvts at gmail.com
Fri Aug 17 03:29:47 CEST 2018


Hi All,

I set HWM to 100, hence, at my understanding, once reaching this number,
zmq_send()
should fail (return -1) but it does not. It just keeps running.

This is per documentation: "If the message cannot be queued on the *socket*,
the *zmq_send()* function shall fail with *errno* set to EAGAIN."

Note, that I am using "ipc" not tcp, as tcp has its own buffer.

Could you take a look at the code to see what's going on, please. This is
the financial
application, where I want to set the HWM to just one or two. This is if the
SUB is busy then
PUB should start dropping messages as I do not want to have stale data.

I am running Debian with "Current 0MQ version is 4.2.5"

https://pastebin.com/p8DU9nQJ

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20180816/d869e445/attachment.html>


More information about the zeromq-dev mailing list