aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2013-10-06 21:13:24 +0200
committerWarren Baker <warren@decoy.co.za>2013-10-06 21:13:24 +0200
commit917a71cef06fd0f45103f1189ca45c79096d2411 (patch)
treefa347508892ac906a7a1ab0927ba2ab5ee65a552
parentadcf0ade2b70b8d0229525840656611d91c14d8a (diff)
downloadpfsense-packages-917a71cef06fd0f45103f1189ca45c79096d2411.tar.gz
pfsense-packages-917a71cef06fd0f45103f1189ca45c79096d2411.tar.bz2
pfsense-packages-917a71cef06fd0f45103f1189ca45c79096d2411.zip
Add send buffer
-rw-r--r--config/unbound/unbound.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc
index 0ac88e8e..c3de2f88 100644
--- a/config/unbound/unbound.inc
+++ b/config/unbound/unbound.inc
@@ -650,11 +650,13 @@ function unbound_optimization() {
if ($tunable['tunable'] == 'kern.ipc.maxsockbuf') {
$so = floor(($tunable['value']/1024/1024)-1);
// Check to ensure that the number is not a negative
- if ($so > 0)
+ if ($so > 0) {
$optimization['so_rcvbuf'] = "so-rcvbuf: {$so}m";
- else
+ $optimization['so_sndbuf'] = "so-sndbuf: {$so}m";
+ } else {
unset($optimization['so_rcvbuf']);
-
+ unset($optimization['so_sndbuf']);
+ }
}
}
// Safety check in case kern.ipc.maxsockbuf is deleted.