aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorMartin Fuchs <mfuchs@pfsense.org>2008-08-12 22:19:16 +0000
committerMartin Fuchs <mfuchs@pfsense.org>2008-08-12 22:19:16 +0000
commit74b19e1762582d750491cf9a1eba5691bdfaf55c (patch)
tree7ee58d61861dd76cbd9f54b30dd7955b726083f2 /packages
parent59638ee05f22a4fc12caf0fd257c8115945e6340 (diff)
downloadpfsense-packages-74b19e1762582d750491cf9a1eba5691bdfaf55c.tar.gz
pfsense-packages-74b19e1762582d750491cf9a1eba5691bdfaf55c.tar.bz2
pfsense-packages-74b19e1762582d750491cf9a1eba5691bdfaf55c.zip
squid: correct allow to tune the finish / abort transfer when aborted by client - settings
Diffstat (limited to 'packages')
-rw-r--r--packages/squid/squid.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc
index 54834649..a634caa8 100644
--- a/packages/squid/squid.inc
+++ b/packages/squid/squid.inc
@@ -714,15 +714,15 @@ function squid_resync_traffic() {
$settings = $config['installedpackages']['squidtraffic']['config'][0];
$conf = '';
+ if (!empty($settings['quick_abort_min']) || ($settings['quick_abort_min'])== 0) $conf .= "quick_abort_min {$settings['quick_abort_min']} KB\n";
+ if (!empty($settings['quick_abort_max']) || ($settings['quick_abort_max'])== 0) $conf .= "quick_abort_max {$settings['quick_abort_max']} KB\n";
+ if (!empty($settings['quick_abort_pct'])) $conf .= "quick_abort_pct {$settings['quick_abort_pct']}\n";
+
$up_limit = ($settings['max_upload_size'] ? $settings['max_upload_size'] : 0);
$down_limit = ($settings['max_download_size'] ? $settings['max_download_size'] : 0);
$conf .= "request_body_max_size $up_limit KB\n";
$conf .= 'reply_body_max_size ' . ($down_limit * 1024) . " allow all\n";
- if (!empty($settings['quick_abort_min'])) $conf .= "quick_abort_min {$settings['quick_abort_min']} KB\n";
- if (!empty($settings['quick_abort_max'])) $conf .= "quick_abort_max {$settings['quick_abort_max']} KB\n";
- if (!empty($settings['quick_abort_pct'])) $conf .= "quick_abort_pct {$settings['quick_abort_pct']}\n";
-
// Only apply throttling past 10MB
// XXX: Should this really be hardcoded?
$threshold = 10 * 1024 * 1024;