aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2017-05-23 00:52:40 +0100
committerUbitUmarov2017-05-23 00:52:40 +0100
commit7b80bcc57a4d7be5d518e83408e063a71ce0eb4c (patch)
tree0035e197830e25f3da72e314ec9b2c56283f3085 /OpenSim
parent remember mono about the default for DnsRefreshTimeout (diff)
downloadopensim-SC_OLD-7b80bcc57a4d7be5d518e83408e063a71ce0eb4c.zip
opensim-SC_OLD-7b80bcc57a4d7be5d518e83408e063a71ce0eb4c.tar.gz
opensim-SC_OLD-7b80bcc57a4d7be5d518e83408e063a71ce0eb4c.tar.bz2
opensim-SC_OLD-7b80bcc57a4d7be5d518e83408e063a71ce0eb4c.tar.xz
no all mono versions know DnsRefreshTimeout
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/Application.cs3
-rw-r--r--OpenSim/Server/ServerMain.cs4
2 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs
index 2fea8d1..4bd2c28 100644
--- a/OpenSim/Region/Application/Application.cs
+++ b/OpenSim/Region/Application/Application.cs
@@ -79,7 +79,8 @@ namespace OpenSim
79 else 79 else
80 { 80 {
81 ServicePointManager.DefaultConnectionLimit = 12; 81 ServicePointManager.DefaultConnectionLimit = 12;
82 ServicePointManager.DnsRefreshTimeout = 120000; // just is case crazy mono decides to have it infinity 82 try { ServicePointManager.DnsRefreshTimeout = 120000; } // just is case crazy some mono decides to have it infinity
83 catch { }
83 } 84 }
84 85
85 ServicePointManager.Expect100Continue = false; 86 ServicePointManager.Expect100Continue = false;
diff --git a/OpenSim/Server/ServerMain.cs b/OpenSim/Server/ServerMain.cs
index 2f2eb28..341c227 100644
--- a/OpenSim/Server/ServerMain.cs
+++ b/OpenSim/Server/ServerMain.cs
@@ -55,10 +55,12 @@ namespace OpenSim.Server
55 public static int Main(string[] args) 55 public static int Main(string[] args)
56 { 56 {
57 ServicePointManager.DefaultConnectionLimit = 64; 57 ServicePointManager.DefaultConnectionLimit = 64;
58 ServicePointManager.DnsRefreshTimeout = 120000; // just is case mono decides to have it infinity
59 ServicePointManager.Expect100Continue = false; 58 ServicePointManager.Expect100Continue = false;
60 ServicePointManager.UseNagleAlgorithm = false; 59 ServicePointManager.UseNagleAlgorithm = false;
61 60
61 try { ServicePointManager.DnsRefreshTimeout = 120000; } // just is case some mono decides to have it infinity
62 catch { }
63
62 m_Server = new HttpServerBase("R.O.B.U.S.T.", args); 64 m_Server = new HttpServerBase("R.O.B.U.S.T.", args);
63 65
64 string registryLocation; 66 string registryLocation;