[zeromq-dev] HWM on ZMQ_PUB does not work for me (with code)
Francesco
francesco.montorsi at gmail.com
Thu Aug 23 20:30:55 CEST 2018
Maybe the OP wants to use
- ZMQ_XPUB_NODROP=1
- ZMQ_SNDTIMEO=0
In that way as James wrote the slowest consumer will provoke zmq_send() to
return EAGAIN as soon as the slowest consumer's queue is full...
HTH,
Francesco
Il giorno gio 23 ago 2018 alle ore 09:51 James Harvey <
jamesdillonharvey at gmail.com> ha scritto:
> ZMQ_PUB does not block which makes sense as you could end up with one slow
> consumer slowing down everyone.
>
> Maybe ZMQ_CONFLATE is what you need?
>
> or If you only have one consumer try a different socket type that does
> block.
>
>
>
> On Wed, Aug 22, 2018 at 10:54 PM vincent freedom <zpisvts at gmail.com>
> wrote:
>
>> Not sure why I am not getting any responses.
>>
>> I did the googling. I know there is a ticket/task to improve the
>> documentation
>> on HWM.
>>
>> Anyone?
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20180823/678b4a57/attachment.htm>
More information about the zeromq-dev
mailing list