[zeromq-dev] How many messages are in queue now?
Ilja Golshtein
ilejncs at narod.ru
Wed Apr 15 16:30:57 CEST 2015
Hello.
I used to think that it is possible to retrieve number or queued messages per socket in recent versions of 0mq, while I failed to find correspond getsockopt in 4.0.5
Use case: I need to alter behavior of my application (drop certain type of messages) if a queue is, say, 90% of HWM.
Please, advise if this facility is implemented or planned, or suggest a workaround which is more elegant than having atomic variable (it is inproc) maintained by reader and writer threads which is what I plan to do.
Thanks.
--
Best regards
Ilja Golshtein
More information about the zeromq-dev
mailing list