Article View: borland.public.cppbuilder.internet.socket
Article #454Keep-Alive/CloseConnection.
From: Arvid Haugen
Date: Tue, 19 Feb 2008 08:36
Date: Tue, 19 Feb 2008 08:36
27 lines
2012 bytes
2012 bytes
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:
<47ba951c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!feed.xsnews.nl!border-2.ams.xsnews.nl!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9657df3675738e7e,start 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 Subject: Keep-Alive/CloseConnection. Date: Tue, 19 Feb 2008 09:36:48 +0100 Lines: 29 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; Original NNTP-Posting-Host: 62.50.173.134 Message-ID: <47ba951c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1203410204 62.50.173.134 (19 Feb 2008 00:36:44 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!feed.xsnews.nl!border-2.ams.xsnews.nl!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail