[zeromq-dev] Is this a bug in 0MQ's guide, "lpclient: Lazy Pirate client in C"?

xinyilong xinyilong at skspruce.net
Mon Jun 16 04:11:34 CEST 2014


Sorry, I am wrong.
This is a infinite loop, single request 3 retries





From: Pieter Hintjens
Date: 2014-06-14 23:08
To: xinyilong; ZeroMQ development list
Subject: Re: [zeromq-dev] Is this a bug in 0MQ's guide, "lpclient: Lazy Pirate client in C"?
The code is correct, I think.



On Fri, Jun 13, 2014 at 5:32 AM, xinyilong <xinyilong at skspruce.net> wrote:

The orignal code:



But I think the code needs exit when he has received the response,as follows:
retries_lest = 0; <not retries_left = REQUEST_RETRIES;>
expect_reply = 0;




陇昕翼 A-01
Skype : lxyscls Mobile phone : 13198525721 

_______________________________________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140616/f2597c3e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Catch(06-16-10-09-00).jpg
Type: image/jpeg
Size: 57513 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140616/f2597c3e/attachment.jpg>


More information about the zeromq-dev mailing list