[zeromq-dev] server with xrep close client's connection automaticly

Zhong Weilin zhwlkobe24 at gmail.com
Wed Sep 19 18:23:36 CEST 2012

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/38e889a1/attachment.htm>

More information about the zeromq-dev mailing list