Commit 9d392294 authored by Franco Fichtner's avatar Franco Fichtner

unbound: remove recently recovered optimization, because...

error: setsockopt(..., SO_RCVBUF, ...) failed: No buffer space available
parent 92d1886c
...@@ -106,7 +106,6 @@ function unbound_optimization() ...@@ -106,7 +106,6 @@ function unbound_optimization()
$optimization['key_cache_slabs'] = "key-cache-slabs: 4"; $optimization['key_cache_slabs'] = "key-cache-slabs: 4";
} }
// More outgoing connections per thread otherwise assign a default of 4096 for a single thread // More outgoing connections per thread otherwise assign a default of 4096 for a single thread
if ($numprocs > 0) { if ($numprocs > 0) {
$or = (1024/$numprocs) - 50; $or = (1024/$numprocs) - 50;
...@@ -115,14 +114,6 @@ function unbound_optimization() ...@@ -115,14 +114,6 @@ function unbound_optimization()
$optimization['outgoing_range'] = "outgoing-range: {4096}"; $optimization['outgoing_range'] = "outgoing-range: {4096}";
} }
/* Larger socket buffer for busy servers */
$so = floor(get_default_sysctl_value('kern.ipc.maxsockbuf')/1024/1024);
if ($so > 0) {
$optimization['so_rcvbuf'] = "so-rcvbuf: {$so}m";
} else {
$optimization['so_rcvbuf'] = '#so-rcvbuf: 4m';
}
return $optimization; return $optimization;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment