[zeromq-dev] Confirmation of ZMQ_PUB + ZMQ_SWAP intended behavior

Ian Barber ian.barber at gmail.com
Wed Aug 17 23:38:45 CEST 2011

On Wed, Aug 17, 2011 at 10:33 PM, Christian Martinez <chmar at microsoft.com>wrote:

>  Given the statements from the manual below does ZMQ_SWAP “override” the
> ZMQ_PUB drop behavior (messages go to disk instead of drop) ? And, is using
> an identity a necessity for this to work properly?

If there is an identity on ZMQ (< 4) SUB, then the publisher will buffer up
to the HWM. If the SWAP is set it will effectively extend that HWM up to
it's size. If there's no identity, the HWM wont be hit, and nothing will be
written to swap.

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

More information about the zeromq-dev mailing list