--- parser3/src/main/pa_request.C 2026/10/23 20:58:45 1.470 +++ parser3/src/main/pa_request.C 2026/10/26 19:06:51 1.471 @@ -37,7 +37,7 @@ #include "pa_varray.h" #include "pa_code_cache.h" -volatile const char * IDENT_PA_REQUEST_C="$Id: pa_request.C,v 1.470 2026/10/23 20:58:45 moko Exp $" IDENT_PA_REQUEST_H IDENT_PA_REQUEST_CHARSETS_H IDENT_PA_REQUEST_INFO_H IDENT_PA_VCONSOLE_H; +volatile const char * IDENT_PA_REQUEST_C="$Id: pa_request.C,v 1.471 2026/10/26 19:06:51 moko Exp $" IDENT_PA_REQUEST_H IDENT_PA_REQUEST_CHARSETS_H IDENT_PA_REQUEST_INFO_H IDENT_PA_VCONSOLE_H; // consts @@ -116,6 +116,7 @@ static const String lock_wait_timeout_na static const String httpd_name("HTTPD"); static const String httpd_timeout_name("timeout"); static const String httpd_mode_name("mode"); +static const String httpd_max_connections_name("max-connections"); #ifdef CODE_CACHE static const String httpd_code_cache_name("code-cache"); #endif @@ -416,6 +417,13 @@ void Request::configure_admin(VStateless }, "HTTPD.%s must be int"); pa_httpd_timeout=httpd_timeout; + int httpd_max_connections=INT_MAX; + CONF_OPTION(httpd, httpd_max_connections_name, { + httpd_max_connections=option->as_int(); + if(httpd_max_connections<=0) httpd_max_connections=INT_MAX; + }, "HTTPD.%s must be int"); + HTTPD_Server::max_connections=httpd_max_connections; + if(httpd) if(Value* option=httpd->get_element(httpd_mode_name)) { if(option->get_junction())