[zeromq-dev] first message never received when SUB binds (0MQ 3)

Martin Sustrik sustrik at 250bpm.com
Wed Sep 14 16:59:44 CEST 2011


On 09/06/2011 08:40 PM, Brian Granger wrote:

>>> This is caused by introduction of subscription forwarding. The scenario
>>> goes like this:
>>>
>>> 1. subscriber connects to the publisher
>>> 2. publisher starts sending messages
>>> 3. there's no filter so far, so the messages get dropped
>>> 4. subscriber subscribes
>>> 5. from this point on the messages are delivered
>
> Can the filter be sent automatically upon connection?

It is. The problem is that it takes few microseconds to deliver the 
filter to the publisher.

During those few microseconds, publisher tries to send the messages and 
-- as it has no filters yet -- drops them.

Martin



More information about the zeromq-dev mailing list