diff options
-rw-r--r-- | OpenSim/Region/Application/Application.cs | 3 | ||||
-rw-r--r-- | OpenSim/Server/ServerMain.cs | 4 |
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; |