[zeromq-dev] Notify send()er that they've hit the high water mark

Edwin Amsler edwinamsler at thinkboxsoftware.com
Mon Jul 9 22:46:18 CEST 2012


There doesn't seem to be anything about how it signals that the high 
water mark happened. Unless I didn't read it thoroughly enough.

"When a/ZMQ_PUB/socket enters an exceptional state due to having reached 
the high water mark for a/subscriber/, then any messages that would be 
sent to the/subscriber/in question shall instead be dropped until the 
exceptional state ends. The/zmq_send()/function shall never block for 
this socket type."

On 09/07/2012 3:32 PM, Ian Barber wrote:
>
>
> On Mon, Jul 9, 2012 at 9:29 PM, Ian Barber <ian.barber at gmail.com 
> <mailto:ian.barber at gmail.com>> wrote:
>
>
>
>     This is pretty much how it works with most socket types - if you
>     use the ZMQ_NOBLOCK flag, you'll get the EAGAIN if you've hit HWM.
>
>     Ian
>
>
> You can see all of the HWM responses here: 
> http://api.zeromq.org/2-1:zmq-socket
>
> Ian
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120709/a2026a85/attachment.htm>


More information about the zeromq-dev mailing list