[zeromq-dev] HWM on ZMQ_PUB does not work for me (with code)
zpisvts at gmail.com
Fri Aug 17 03:29:47 CEST 2018
I set HWM to 100, hence, at my understanding, once reaching this number,
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
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"
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the zeromq-dev