[zeromq-dev] PUB doesn't discard msg when no SUB

Martin Sustrik sustrik at 250bpm.com
Fri May 27 08:06:09 CEST 2011


On 05/26/2011 09:50 PM, Pieter Hintjens wrote:
> On Thu, May 26, 2011 at 12:47 PM, Martin Sustrik<sustrik at 250bpm.com>  wrote:
>
>> Maybe it would really be worth creating a queue in advance even on the bind
>> side. That way we'll have it fully symmetric.
>
> I think the philosophy that bind/connect direction is orthogonal to
> message flow is a powerful one.
>
> However, will the queue grow infinitely if there's no HWM? So a
> publisher that binds and starts publishing will just crash? That's not
> going to work IMO.

The behaviour would be the same as today, but delayed. Ie. block for 
REQ, drop for PUB etc. the only difference being that it will occur only 
after sending HWM messages.

As you may recall, I've proposed setting default HWM to some number, say 
1000, which would solve the problem. The discussion haven't lead to a 
conclusion yet.

Martin



More information about the zeromq-dev mailing list