RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebRequestHandler.MaxConnections Property

Sets or returns the MaxConnections used by the socket.

Pascal
property MaxConnections: Integer;
C++
__property int MaxConnections;

Set MaxConnections to adjust the number of HTTP request messages the application can handle simultaneously. Use the ActiveCount and InactiveCount properties to get a sense of the frequency and duration of request messages. Then set MaxConnections so that it is high enough to avoid exceptions when the application runs out of Web modules, but low enough not to degrade performance too severely by running too many simultaneous threads. 

If a request message is received when ActiveCount is already at MaxConnections, the application raises an exception.

Note: InactiveCount is only meaningful for Apache (cross-platform), ISAPI (Windows only), or NSAPI (Windows only)
applications. Each CGI application handles only a single request message, so there is no need to cache unused data modules.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!