summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-09-17 21:33:47 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-09-17 21:33:47 -0400
commit92880548e03b24f41372cbb1fee8008689fbe903 (patch)
treea03a9d8b0b5353f2c546b3454c8f59b563efe20f /etc
parent5caa648d36898a3c06e4b3fb4886d8d1e2d2b873 (diff)
downloadpfsense-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.inc26
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\"";
OpenPOWER on IntegriCloud