Archived

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

WSAECONNREFUSED with intensive connections

Hi.

Pattern: we have 700 clients, and sequentally instruct them to connect to the server, for example, ~100 connections per second - eq pattern length ~7 sec. When we reach 300-400 connect count some clients can't connect with

Network.cpp:664: Ice::ConnectionRefusedException:
connection refused: WSAECONNREFUSED.


Trace with level 2 at client:
[ 03/04/08 12:32:05.020 Network: trying to establish tcp connection to <addr>:10000 ]
[ 03/04/08 12:32:05.973 Network: trying to establish tcp connection to <addr>:10000 ]


and all.

Btw, sometimes on connected clients we see this trace at the beginning of the trace log, so it seems, that connection status somehow badly interpreted by ICE, or something wrong with the server connect acceptor (we can't enable trace on it, coz it has GUI interface).

We have tried other frameworks with this pattern: TAO, WCF, ominORB - no such problems.

Target platform: windows 2003, 1 gb optical network.

Thanks!

Comments

  • benoit
    benoit Rennes, France
    Hi Andrew,

    This is a known issue that will be fixed in Ice 3.3.0. To fix this in the meantime, you can replace the line _backlog = 5 with _backlog=SOMAXCONN in src/Ice/TcpAcceptor.cpp and src/IceSSL/AcceptorI.cpp. The TCP/IP listen backlog will be configurable in Ice 3.3.0 (with a default value of SOMAXCONN).

    Cheers,
    Benoit.
  • Thanks, it's seems will solve this issue.

    Andrew Solodovnikov