[zeromq-dev] inproc: message dropped after ZMQ dealer connected

Pieter Hintjens ph at imatix.com
Wed Apr 3 20:14:19 CEST 2013


Hi Kah-Chan,

zmq_connect is synchronous on inproc, so if you could create a short
test case that reproduces your lost message symptom, that would be
great.

-Pieter

On Wed, Apr 3, 2013 at 3:13 AM, Kah-Chan Low <kahchanlow at yahoo.com> wrote:
> Hello
> I am using inproc and I have a router and dealer pair.  I bind to router to
> the inproc net address first and have the dealer connect to the net address.
> The dealer was not previously not connected to any zmq socket -- this is its
> first connection. I immediately send a message from the dealer right after
> the dealer has made the zmq_connect() call.  Now I have a bunch of dealers
> each getting created, connect to that one router for some time and then get
> destructed.  Once in a while I would get a dealer that somehow managed to
> lose the first message it sent right after it has made its (first)
> connection to the router -- the router simply failed to receive the message.
> My question: for inproc is zmq_connect() asynchronous?  Is it possible that
> the connection may not be ready to transmit messages right after
> zmq_connect() returns successfully?
>
> Thanks!
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



More information about the zeromq-dev mailing list