From 917a71cef06fd0f45103f1189ca45c79096d2411 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Sun, 6 Oct 2013 21:13:24 +0200 Subject: Add send buffer --- config/unbound/unbound.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'config/unbound') 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. -- cgit v1.2.3