Re: TCPServer - MaxConnection and ListenQueue

Giganews Newsgroups
Subject: Re: TCPServer - MaxConnection and ListenQueue
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Fri, 20 Nov 2009

"Alan T" <alan_NO_SPAM_plt…@yahoo.com.au> wrote in message =
news:503D70391299E340alan_NO_SPAM_plt…@yahoo.com.au...

> Can anyone tell me if there is relationship between MaxConnection
> and ListenQueue?

There is not.

The ListenQueue property specifies the maximum number of client connect =
requests that can be queued by the OS at one time before TIdTCPServer =
accepts them.  If the queue is full when a new client connect request =
arrives, the client will get a WSAECONNREFUSED (10061) error (the same =
error it gets if the server socket is not listening at all).

The MaxConnections property specifies the maximum number of accepted =
client connections that can actually be running at one time.

--=20
Remy Lebeau (Indy Team)

Replies

None

In response to

TCPServer - MaxConnection and ListenQueue posted by Alan T on Fri, 20 Nov 2009