[zeromq-dev] PUB connect first, SUB bind after, doesn't work?

Martin Sustrik sustrik at 250bpm.com
Fri Oct 1 17:09:02 CEST 2010


Gonzalo,

> Prog1: create PUB socket, connect it to tcp://127.0.0.1:5001, set
> watermark to 1, and start sending messages every 5 seconds.
>
> Prog2: create SUB socket, bind it to tcp://127.0.0.1:5001, and subscribe
> to all messages.
>
> If Prog2 starts before Prog1, everything works as intended and Prog2
> receives messages (sent from Prog1) every five seconds.
>
> If Prog1 starts before Prog2, the messages are sent from Prog1 but
> nothing is received in Prog2.

Are you saying you don't even get messages that were sent *after* Prog2 
was started?

If so, it looks like a serious bug. Can you post the test programs?

Thanks!
Martin



More information about the zeromq-dev mailing list