Web.WebReq.TWebRequestHandler.MaxConnections

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property MaxConnections: Integer read FMaxConnections write FMaxConnections;

C++

__property int MaxConnections = {read=FMaxConnections, write=FMaxConnections, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Web.WebReq.pas
Web.WebReq.hpp
Web.WebReq TWebRequestHandler

Description

Sets or returns the MaxConnections used by the socket.

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.

See Also