On Tue, Sep 28, 2010 at 23:34, Martin Sustrik <[email protected]> wrote:

> On 09/28/2010 08:54 PM, MinRK wrote:
>
>     Except it does not work, when you send m1 m2 is also cleared.
>>
>> change:
>>
>>    zmq_msg_copy (msg2, msg1);
>>    zmq_send (s1, msg1);
>>    zmq_send (s2, msg2);
>>
>>
>> to:
>> zmq_msg_copy (msg2, msg1);
>> zmq_send (s2, msg2);
>> zmq_send (s1, msg1);
>>
>> and it should work.  Still probably a bug, but this might help track it
>> down.
>>
>
> I am lost here. Can you post a code example that shows what you believe is
> the bug?
>

I can't for the life of me reproduce it anymore. The code that caused it
before looked like:
while (true){
     zmq_recv(s0, msg1,0);
     zmq_msg_copy(msg2, msg1);
     zmq_send(s1,msg1,0);
     zmq_send(s2,msg2,0);
}
Then flood s0 with messages as fast as you can, and count how many messages
are received on the other end of s1/s2. Flipping the order of the sends
fixed the issue.  It's been a while since, so maybe it was an artifact of
something else that's been fixed since then.

Consider it possibly fixed?

-MinRK


> Thanks.
> Martin
>
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to