Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Mar : Re: How to limit number of concurrent clients in TServerSocket?
| Subject: | Re: How to limit number of concurrent clients in TServerSocket? |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 25 Mar 2008 20:07:23 |
"Bo Berglund" <bo.berglund@telia.com> wrote in message
news:6r0ju39bjjpvtkk8i8i9tbibjphfg7sh8v@4ax.com...
> What I see is that even though I disconnect a client then when I
> again connect the ActiveConnections property increments
> monotonically 1-2-3-4-5 etc. I cannot see where it decrements.
Then you are not disconnecting them correctly. TServerSocket can only
accept 1 client at a time, so for the count to keep increasing like that,
the previous connections are haanging around.
Are you using the server in blocking or non-blocking mode?
Gambit