[zeromq-dev] Pub/Sub LWM Limit

kreuzberger j.kreuzberger at procitec.de
Tue Jul 29 09:06:28 CEST 2014


im trying zeromq pub/sub pattern the first time an do some first basic
examples with it.
i have tested the hwm/lwm feature on pub/sub an run into following problem:

if i set a hwm on the pub socket (e.g. 5000) the lwm is automatically
calculated to 2500.

In my sub i then can receive 2500 messages, and then get EAGAIN
(non-blocking mode). So it seems the pub seems not to send the messages,
until i add new ones again, so i get over the lwm limit.

Must i tell the publisher that no more message will come to "flush" the queue?

Or must i close the socket to get the messages flushed?

Or must i set the hwm to 0 to get the messages flushed?

Thanks for supporting a newbie :-)

More information about the zeromq-dev mailing list