[zeromq-dev] zmq_recv Blocks Forever
wolf at cs.cmu.edu
Sun Aug 22 19:43:36 CEST 2010
Okay, will do. I just saw this.
On Sun, 2010-08-22 at 19:39 +0200, Pieter Hintjens wrote:
> This is normal, though not very elegant. Would you add a comment to
> the talk page, and I'll explain this in the text.
> Sent from my Android mobile phone.
> On Aug 22, 2010 7:17 PM, "Wolfgang Richter" <wolf at cs.cmu.edu> wrote:
> > I was wondering if this was expected behavior.
> > Working with the REQ-REP Hello World example in C with 0MQ release
> > 2.0.7(beta), I have noticed that zmq_recv in my client will block
> > forever if I kill the server prematurely.
> > Even if I bring the server back up.
> > I was expecting that once the server came back, the client would
> > continue, or somehow signal an error condition (or an error
> condition on
> > the server).
> > I have noticed that if I use ZMQ_NOBLOCK on my zmq_recv and loop
> > whenever I get errors, when the server comes back up things continue
> > making progress as expected.
> > --
> > Wolf
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
More information about the zeromq-dev