[zeromq-dev] PUB socket and memory
Andrei Zmievski
andrei at zmievski.org
Wed Dec 14 21:59:14 CET 2011
On Wed, Dec 14, 2011 at 12:53 PM, Chuck Remes <cremes.devlist at mac.com>wrote:
> It depends. If you are connecting the PUB socket to the SUB socket, then
> the PUB socket creates an internal queue and starts feeding data into it.
> By default the HWM is 0 so it's unbounded.
>
> If you bind the PUB socket, then no internal queue is created. Any
> messages sent without a subscriber are dropped.
>
> This should probably be documented beyond the mailing list.
Right, I connect the PUB socket instead of binding it (because my
subscriber is supposed to be more durable). I guess I'll have to figure out
what appropriate HWM to set.
-Andrei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111214/5d48e319/attachment.htm>
More information about the zeromq-dev
mailing list