diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-09-17 21:33:47 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-09-17 21:33:47 -0400 |
commit | 92880548e03b24f41372cbb1fee8008689fbe903 (patch) | |
tree | a03a9d8b0b5353f2c546b3454c8f59b563efe20f /etc | |
parent | 5caa648d36898a3c06e4b3fb4886d8d1e2d2b873 (diff) | |
download | pfsense-92880548e03b24f41372cbb1fee8008689fbe903.zip pfsense-92880548e03b24f41372cbb1fee8008689fbe903.tar.gz |
Set max children to same amount as max procs
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 4ab2333..a19f0ed 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -748,25 +748,17 @@ function system_generate_lighty_config($filename, $max_procs = 4; } - if($captive_portal == true) { - $bin_environment = <<<EOC - "bin-environment" => ( - "PHP_FCGI_CHILDREN" => "16", - /* This problem seems to stem from a little-known issue with PHP: - * PHP stops accepting new FastCGI connections after handling 500 requests; - * unfortunately, there is a potential race condition during the PHP cleanup - * code in which PHP can be shutting down but still have the socket open, so - * lighty can send request number 501 to PHP and have it "accepted", but then - * PHP appears to simply exit, causing a 500 return from lighty. - */ - "PHP_FCGI_MAX_REQUESTS" => "500", - "PHP_FCGI_CHILDREN" => "50" - ), + if($captive_portal == true) { + $bin_environment = <<<EOC + "bin-environment" => ( + "PHP_FCGI_MAX_REQUESTS" => "500", + "PHP_FCGI_CHILDREN" => "$max_procs" + ), EOC; - } else { - $bin_environment = ""; - } + } else { + $bin_environment = ""; + } if($fast_cgi_enable == true) { $module = "\"mod_fastcgi\", \"mod_cgi\""; |