🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #457

Re: Keep-Alive/CloseConnection.

#457
From: Arvid Haugen
Date: Tue, 19 Feb 2008 13:59
36 lines
2289 bytes
I will re-post this in the delphi forum as well - where it should be posted 
in the first place.

Sorry about that.

"Arvid Haugen" <Arvid@elis.no> skrev i melding 
news:47ba951c$1@newsgroups.borland.com...
> Hi,
>
> I have set "Keep-Alive" in the TidHTTPServer. This keeps the sockets open.
>
> Is there any timeout for this connection, or a max number of requestes 
> that will be served for each connection?
>
> Or do I need to program this myself?
>
> The reason why I am asking is that Apache implements this and I would like 
> to implement the same behavior. For Apache documentation:
> KeepAlive
> Syntax: KeepAlive max-requests
> Default: KeepAlive 5
>
> This directive enables Keep-Alive support. Set max-requests to the maximum 
> number of requests you want Apache to entertain per connection. A limit is 
> imposed to prevent a client from hogging your server resources. Set this 
> to 0 to disable support.
>
> KeepAliveTimeout
> Syntax: KeepAliveTimeout seconds
> Default: KeepAliveTimeout 15
>
> The number of seconds Apache will wait for a subsequent request before 
> closing the connection. Once a request has been received, the timeout 
> value specified by the Timeout directive applies.
>
> 
Technical Details
Message-ID: <47bae0bb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <47ba951c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9657df3675738e7e
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Arvid Haugen" <Arvid@elis.no>
From: "Arvid Haugen" <Arvid@elis.no>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <47ba951c$1@newsgroups.borland.com>
Subject: Re: Keep-Alive/CloseConnection.
Date: Tue, 19 Feb 2008 14:59:23 +0100
Lines: 38
Organization: Elis As
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 62.50.173.134
Message-ID: <47bae0bb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1203429563 62.50.173.134 (19 Feb 2008 05:59:23 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail