[zeromq-dev] PUB socket and memory
Andrei Zmievski
andrei at zmievski.org
Thu Dec 15 01:05:41 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.
>
>
By the way, is there any way to have 0MQ start dropping the oldest messages
if the socket reaches HWM instead of the newest ones.
-Andrei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111214/182f8a8f/attachment.htm>
More information about the zeromq-dev
mailing list