summaryrefslogtreecommitdiffstats
path: root/etc/inc/unbound.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-01-12 16:32:57 -0600
committerChris Buechler <cmb@pfsense.org>2015-01-12 16:32:57 -0600
commita9402b961bb0304c36fa4b717e61fedcd96c99f7 (patch)
tree9962715a0562396f33abfa480d96f627e27a270a /etc/inc/unbound.inc
parentbf6c57c7ab6aee089a45dc517ee8ad4415d56237 (diff)
parent2cbcc2568e122c9d56d1f6e5a2a81c9604866d06 (diff)
downloadpfsense-a9402b961bb0304c36fa4b717e61fedcd96c99f7.zip
pfsense-a9402b961bb0304c36fa4b717e61fedcd96c99f7.tar.gz
Merge pull request #1430 from wagonza/patch-4
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r--etc/inc/unbound.inc11
1 files changed, 2 insertions, 9 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc
index 9fe32e4..20ed19b 100644
--- a/etc/inc/unbound.inc
+++ b/etc/inc/unbound.inc
@@ -81,13 +81,6 @@ function unbound_optimization() {
// Size of the RRset cache
$optimization['rrset_cache_size'] = "rrset-cache-size: 8m";
- // More outgoing connections per thread otherwise assign a default of 4096 for a single thread
- if ($numprocs > 0) {
- $or = (1024/$numprocs) - 50;
- $optimization['outgoing_range'] = "outgoing-range: {$or}";
- } else
- $optimization['outgoing_range'] = "outgoing-range: {4096}";
-
/*
* Larger socket buffer for busy servers
* Check that it is set to 4MB (by default the OS has it configured to 4MB)
@@ -313,7 +306,7 @@ msg-cache-size: {$msg_cache_size}m
{$optimization['infra_cache_slabs']}
{$optimization['key_cache_slabs']}
{$optimization['rrset_cache_size']}
-{$optimization['outgoing_range']}
+outgoing-range: 4096
{$optimization['so_rcvbuf']}
{$anchor_file}
prefetch: {$prefetch}
@@ -682,4 +675,4 @@ function unbound_hosts_generate() {
unbound_control("reload");
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud