[zeromq-dev] ZMQ Queue is full indication

Ori Barak oribarak at microsoft.com
Sun Aug 18 09:36:48 CEST 2013


Hi Guys,

In my application I'm using push\pull sockets with ZMQ_HWM option calling the non-blocking send API.
When we first evaluated ZMQ we noticed that in high QPS the send operation is sometimes returning EAGAIN error code and I read it usually means that we need to retry so we implemented a retry logic for this case.
Lately I noticed that when the HWM queue is full I also get the same error. My problem is that if queue is full there is no point to retry (if for some reason the receiver is not connected) so I would like to "know" somehow that the queue is full and get a different error code and just discard the message.

Any advice on how I can implement this logic?

Thanks,
Ori
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130818/cc8737fc/attachment.htm>


More information about the zeromq-dev mailing list