summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-06-03 00:51:13 -0500
committerChris Buechler <cmb@pfsense.org>2016-06-03 00:52:02 -0500
commit754f7091daffcf63d36c324eb462f3587c4a2c9e (patch)
tree492193d5338740a22bbf2cada988c7a2f43d07b4 /src
parente2f0b061e072d41d89a50a2cbd69d4d619821c9f (diff)
downloadpfsense-754f7091daffcf63d36c324eb462f3587c4a2c9e.zip
pfsense-754f7091daffcf63d36c324eb462f3587c4a2c9e.tar.gz
Set keepalive_timeout 0 where captive portal in use, and update otherwise to nginx's current default of 75. Ticket #6421
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/system.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc
index 87c83fd..4f81d80 100644
--- a/src/etc/inc/system.inc
+++ b/src/etc/inc/system.inc
@@ -1297,7 +1297,6 @@ http {
server_tokens off;
sendfile on;
- keepalive_timeout 65;
access_log syslog:server=unix:/var/run/log,facility=local5 combined;
@@ -1305,6 +1304,9 @@ EOD;
if ($captive_portal !== false) {
$nginx_config .= "\tlimit_conn_zone \$binary_remote_addr zone=addr:10m;\n";
+ $nginx_config .= "\tkeepalive_timeout 0;\n";
+ } else {
+ $nginx_config .= "\tkeepalive_timeout 75;\n";
}
if ($cert <> "" and $key <> "") {
OpenPOWER on IntegriCloud