Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 May : backlog and connection refused error
| Subject: | backlog and connection refused error |
| Posted by: | "Danna Tabak" (tabak_dan..@emc.com) |
| Date: | 23 May 2005 06:16:47 |
I'm having an issue with a server I wrote that is refusing connections when getting several connection requests simultaniously (the clients are getting error WSAECONNREFUSED 10061). I am using TServerSocket.
I suspect that this is related to the backlog parameter that is passed to "Winsock.listen()". For the backlog value, Delphi uses a hard coded value of 5 (SOMAXCONN). I replaced it with 20 and this didn't make any difference. I assume the value is hard coded to 5 because it gets overridden by the operating system any way. Is there any way to increase the backlog?