Archived

This forum has been archived. Please start a new discussion on GitHub.

How can I make a server run long time?

I make a server and client .
When the server start ,it can run fine, but as long time (just one day),when many times client login in, and the client will obtain a connection error that report the 669 , about this error is

.\NetWork.cpp:669:Ice::ConnectionRefuseException:
Connection refused:WSAECONNERFUSED


Why?And How can I do ?
I set Server'sConfiger file:

Ice.ThreadPool.Client.Size=40
Ice.ThreadPool.Server.Size=40
Ice.Override.Timeout=60000
Ice.ACM.Client=0


How can I make a server can run long time and once be called with many clients.

Comments

  • When I set Ice.Trace.Network=2

    the server report this :


    local address = 202.99.233.33:3228
    remote address = 60.31.185.11:5566
    16241.328 02/12/2006 14:46:53 Network
    16241.328 02/12/2006 14:46:53 shutting down tcp connection for writing
    local address = 202.99.233.109:6677
    remote address = 60.31.185.11:1245

    my server ip is 202.99.233.109 and port is 6677
    why local address = 202.99.233.33:3228 ?
  • There is no known bug in Ice that would cause Ice clients or servers to misbehave after one day of operation.

    I'm afraid from the error description, it's impossible to say what the problem is. All I can see is that the client cannot connect to the server, which can be caused by many problems, ranging from network problems, server crashes, or the server misbehaving due to a memory corruption. I also can't comment on the stack trace, except that if the server closes a connection, then it must have opened such connection before.
  • I Set Ice.Trace.Network=2 in client' confilger file.
    When I receive a Ice::ConnectionRefusedException,I find a question,
    Just is ,I only set server 's port is 6677 ,like

    WorldCenter.proxy=hub:tcp -h 218.XX.XX.127 -p 6677

    why my client want to remote address = 218.XX.XX.127:3793 ???
    The port changed from 6677 to 3793?

    ICE 3.0
    vc2003
    windows2005

    log file report :

    2.474 02/14/2006 23:05:01 connection exception:
    .\TcpTransceiver.cpp:217: Ice::ConnectionLostException:
    connection lost: recv() returned zero
    local address = 60.31.179.224:5566
    remote address = 218.XX.XX.127:3793
    7.260 02/14/2006 23:05:06 .\LoginThread.cpp==2208
    7.260 02/14/2006 23:05:06 .\Network.cpp:669: Ice::ConnectionRefusedException:
    connection refused: WSAECONNREFUSED
  • I'm sorry, but I really don't have any additional advice I could give. Ice does not change ports, and there are no known bugs in Ice that would make a server misbehave after a few days.

    If you like, we can provide consulting services to your project (we have an excellent Ice specialist in Shanghai). If you are interested, please contact us at info@zeroc.com.