[zeromq-dev] server with xrep close client's connection automaticly
Zhong Weilin
zhwlkobe24 at gmail.com
Thu Sep 20 15:26:35 CEST 2012
Hi,
Well, test's output is normal, but in my project the zmq with xrep cann't
run very well, it's what happened: when amount of clients arrive at about
20 the server closes connection automaticly, I have used wireshark to
capture the packets to prove my assumption, and what I want you to check is
whether my way handling the disconnecting of client is all right, I'm doubt
about it. Since I don't know how server with zmq_xrep works, so I hope you
check my test code, link is: https://github.com/maigege/zmq_test/, if you
have some advice about how server with zmq_xrep close connection
automaticly, pls let me know. PS: zmq version is 2.2.0, OS version is
CentOS release 5.5, kernel version is: Linux version 2.6.18-194.el5. Thank
you!
On Thu, Sep 20, 2012 at 12:23 AM, Zhong Weilin <zhwlkobe24 at gmail.com> wrote:
> Hi, zmq dev team:
>
> I have minimized the test code, link is:
> https://github.com/maigege/zmq_test/, client.cpp is for client,
> server.cpp is for server. I have decribed the problem below. Pls help me
> to check what happened, thanks a lot.
>
>
> On Tue, Sep 18, 2012 at 10:57 PM, Zhong Weilin <zhwlkobe24 at gmail.com>wrote:
>
>> Hi, zmq dev team:
>>
>> I have already pasted the minimal test case to github.com, link is:
>> https://github.com/maigege/zmq_demo, zmq_client is a test case of
>> client, zmq_server is a test case of server. Zmq official doc mentions that
>> client can connect automaticly to the server after it lost connection to
>> server, but in fact it doesn't work, so I add some code to deal with
>> disconnecting. Now in my project, I hit a problem like that: in the
>> begining a certain amount of clients(about 20) can connect to the server
>> with zmq_xrep ok and can communication normally, but after that client with
>> zmq_req connect to the server with zmq_xrep, the server close the
>> connection automaticly, I check it with a network packet capture tool named
>> wireshark, why this happens ? I'm confused about how server deal with
>> multiple clients' connection?
>> I hope you guys help me to check the demo code, I wrap zeromq api, I
>> think it makes it more readable. If you have any good idea to handle the
>> disconnecting, pls let me know, thank you!!!
>>
>>
>> Best Regards,
>> Allen Chong
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120920/1116a4ea/attachment.htm>
More information about the zeromq-dev
mailing list