Apache 1.3 API Documentation

Constant HARD_SERVER_LIMIT

Definition:

Compile-time definition; default set by #include "httpd.h"
     

Usage example:

env CFLAGS="-Wall -DHARD_SERVER_LIMIT=1024" ./configure 
 
for (i = 0; i < HARD_SERVER_LIMIT; ++i) {
    ...per-child processing...
}
     

This compile-time constant defines the maximum possible number of server processes. It places a ceiling on the number of concurrent requests the server can handle. It is used to size several static data structures and therefore requires a recompilation in order to change the value.

The default value for Windows is 1024, because on that platform it refers to threads rather than processes. For all other platforms the default value (which does refer to actual child processes) is 256.

See also:
BIG_SECURITY_HOLE, DEFAULT_ADMIN, DEFAULT_CONTENT_TYPE, DEFAULT_INDEX, DEFAULT_KEEPALIVE, DEFAULT_KEEPALIVE_TIMEOUT, DEFAULT_PATH, DEFAULT_TIMEOUT, DOCUMENT_LOCATION, DYNAMIC_MODULE_LIMIT, HTTPD_ROOT, SECURITY_HOLE_PASS_AUTHORIZATION, TARGET

Previous: GLOBAL_ONLY Next: HTTPD_ROOT

Table of Contents (Routines, Structures, Data Cells, Constants)