Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Mar : TIdTCPServer - Slowly decreasing connection limit

www.cryer.info
Managed Newsgroup Archive

TIdTCPServer - Slowly decreasing connection limit

Subject:TIdTCPServer - Slowly decreasing connection limit
Posted by:"Adam Lister" (adam@spamless.tombola.com)
Date:Mon, 13 Mar 2006 09:39:57

We've got a server app based around TIdTCPServer and over the weekend it
suddenly seemed to develop a hard but decreasing limit to the number of
connections it would allow.

Our app had been running for 1-2 weeks without problem.  Around 9pm on
friday we had users complaining they couldnt connect, viewing the logs
shows they connect, authenticate successfully against the system and
then just fire the disconnect event.  It appeared that there was a hard
limit of 770 connections, and as soon as anyone disconnected someone
else could connect.  Over the next few hours this limit slowly decreased
and by 11pm it was a limit of 761.

Stopping and restarting the app solved the problem, and other less busy
applications also using TIdTCPServer were unaffected so the problem was
local to that app/port.

Does anyone have any experience of anything like this?  I can only
assume that theres a particular type of failed disconnect thats locking
a socket in a closed but unusuable state.

Details:
Dual Xeon 3.6 with 8GB Ram
Delphi 5
Indy 9 (newest version)
DisconnectSocket used to disconnect clients from the server end.


Thanks
Adam

Replies:

www.cryer.info
Managed Newsgroup Archive