From 7b80bcc57a4d7be5d518e83408e063a71ce0eb4c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 23 May 2017 00:52:40 +0100 Subject: no all mono versions know DnsRefreshTimeout --- OpenSim/Region/Application/Application.cs | 3 ++- OpenSim/Server/ServerMain.cs | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim') 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 else { ServicePointManager.DefaultConnectionLimit = 12; - ServicePointManager.DnsRefreshTimeout = 120000; // just is case crazy mono decides to have it infinity + try { ServicePointManager.DnsRefreshTimeout = 120000; } // just is case crazy some mono decides to have it infinity + catch { } } 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 public static int Main(string[] args) { ServicePointManager.DefaultConnectionLimit = 64; - ServicePointManager.DnsRefreshTimeout = 120000; // just is case mono decides to have it infinity ServicePointManager.Expect100Continue = false; ServicePointManager.UseNagleAlgorithm = false; + try { ServicePointManager.DnsRefreshTimeout = 120000; } // just is case some mono decides to have it infinity + catch { } + m_Server = new HttpServerBase("R.O.B.U.S.T.", args); string registryLocation; -- cgit v1.1