2012/8/15 Apostolis Xekoukoulotakis <[email protected]>:
> Because by the time the second worker connects, the sender has already sent
> both messages to the first one.
>
> The message is not lost. the first worker simply exits after only one
> message.
>


Very good makes sense, but then why this also hangs forever??

if __name__ == '__main__':
    p1 = Process(target=start_send)
    p2 = Process(target=start_receive)
    p3 = Process(target=start_receive)
    p2.start()
    p3.start()
    sleep(0.1)
    p1.start()

I mean now the two receivers are started before the sender does, but
the first receiver gets both messages, is that normal?

In a normal situation probably it won't matter because the first
worker should be busy doing something so the other could get the
message, but just to understand..
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to