Topic Path: Symbol Reference > Classes > TIdCustomHTTPServer Class > TIdCustomHTTPServer Properties > KeepAlive Property
ContentsIndexHome
PreviousUpNext
TIdCustomHTTPServer.KeepAlive Property

Indicates if a client connection should remain open for subsequent use in an HTTP session.

property KeepAlive: Boolean;

KeepAlive is a Boolean property that indicates if the HTTP server should keep the connection open for the session established in an executing client thread. When KeepAlive is True, the connection used for the HTTP response is give a 'keep-alive' header in the response content. When KeepAlive is False, the connection header 'close' is used in the HTTP response. 

The default value for KeepAlive is Id_TId_HTTPServer_KeepAlive, as assigned during initialization of the component.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.