aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/Application.cs
diff options
context:
space:
mode:
authorMelanie2019-08-09 12:06:33 +0100
committerMelanie2019-08-09 12:06:33 +0100
commitc9b7ec2af91792b9d6558875c2a44267ac0ac5a0 (patch)
tree872c93bfd92f83b5e03ec35c3297ce5248410f77 /OpenSim/Region/Application/Application.cs
parentMerge branch 'master' of brain.opensimulator.org:/var/git/opensim (diff)
downloadopensim-SC-c9b7ec2af91792b9d6558875c2a44267ac0ac5a0.zip
opensim-SC-c9b7ec2af91792b9d6558875c2a44267ac0ac5a0.tar.gz
opensim-SC-c9b7ec2af91792b9d6558875c2a44267ac0ac5a0.tar.bz2
opensim-SC-c9b7ec2af91792b9d6558875c2a44267ac0ac5a0.tar.xz
Make the DNS cache timeout configurable.
In containerized environments, DNS is simulated. It can change several times per second as containers move around. The hardcoded timeout was too long for a container environment.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/Application.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs
index e4c3329..7c3b6c5 100644
--- a/OpenSim/Region/Application/Application.cs
+++ b/OpenSim/Region/Application/Application.cs
@@ -84,7 +84,7 @@ namespace OpenSim
84 ServicePointManager.DefaultConnectionLimit = 12; 84 ServicePointManager.DefaultConnectionLimit = 12;
85 } 85 }
86 86
87 try { ServicePointManager.DnsRefreshTimeout = 300000; } catch { } 87 try { ServicePointManager.DnsRefreshTimeout = 5000; } catch { }
88 ServicePointManager.Expect100Continue = false; 88 ServicePointManager.Expect100Continue = false;
89 ServicePointManager.UseNagleAlgorithm = false; 89 ServicePointManager.UseNagleAlgorithm = false;
90 90