From 2cd9e4df384affbd305a34e472d43f15e5d25347 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 19 Sep 2005 21:37:34 +0000 Subject: [PATCH] Be more conservative on the number of fast-cgi processes --- etc/inc/captiveportal.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index c0abeaa8e9..41c81feeba 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -188,13 +188,13 @@ EOD; } else if($avail > 512 and $avail < 684) { $procs = 7; } else { - $procs = 8; + $procs = 1; } /* generate lighttpd configuration */ system_generate_lighty_config("{$g['varetc_path']}/lighty-CaptivePortal.conf", $key, $cert, "lighty-CaptivePortal.pid", "8000", "/usr/local/captiveportal/", - "cert-portal.pem", "5", $procs, $use_fastcgi); + "cert-portal.pem", "1", $procs, $use_fastcgi); /* attempt to start lighttpd */ $res = mwexec("/usr/local/sbin/lighttpd -f {$g['varetc_path']}/lighty-CaptivePortal.conf");