Web.WebReq.TWebRequestHandler.InactiveCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property InactiveCount: Integer read GetInactiveCount;

C++

__property int InactiveCount = {read=GetInactiveCount, nodefault};

Properties

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

Description

Indicates the number of Web modules cached for later reuse.

Use InactiveCount to monitor the number of unused Web modules. Over time, this value provides an indication of the optimal value for the MaxConnections property.

When CacheConnections is true, each time an Apache (multi-device), ISAPI (Windows only), or NSAPI (Windows only) application receives an HTTP request message, it reactivates one of the inactive Web modules. The application generates a new instance of the Web module if InactiveCount is 0. After the response is returned to the Web client, the Web module is deactivated again, and counted by the InactiveCount property.

When CacheConnections is false, a new Web module is created for each HTTP request message and destroyed when the response is returned. InactiveCount is always 0 when CacheConnections is false.

Note: InactiveCount is only meaningful for Apache (multi-device), 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