Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: Keep-Alive connection timeout/max requests.

www.cryer.info
Managed Newsgroup Archive

Re: Keep-Alive connection timeout/max requests.

Subject:Re: Keep-Alive connection timeout/max requests.
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Tue, 19 Feb 2008 10:57:15

"Arvid Haugen" <Arvid@elis.no> wrote in message
news:47bae0f0@newsgroups.borland.com...

> Is there any timeout for this connection

There are two timeouts that are available which you can use to manually
mimic the functionality you are asking for (there is no timeout specific for
it):

1) the connection's ReadTimeout property.  If the client does not send a new
request during the specified interval, the connection will timeout and
disconnect.  But it will also timeout if the connection is slower than the
interval as well.

2) the server's SessionTimeOut property.  If the client does not send a new
request using an existing session during the specified interval, the session
will timeout.  You can use the OnCreateSession event to associate a
connection with a session, and then use the OnSessionEnd event to disconnect
the connection.

> or a max number of requestes that will be served for each connection?

No.

> Or do I need to program this myself?

Yes.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive