diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs index bc6d7b3da4..2fea8d1c31 100644 --- a/OpenSim/Region/Application/Application.cs +++ b/OpenSim/Region/Application/Application.cs @@ -77,7 +77,10 @@ namespace OpenSim if(Util.IsWindows()) ServicePointManager.DefaultConnectionLimit = 32; else + { ServicePointManager.DefaultConnectionLimit = 12; + ServicePointManager.DnsRefreshTimeout = 120000; // just is case crazy mono decides to have it infinity + } ServicePointManager.Expect100Continue = false; ServicePointManager.UseNagleAlgorithm = false; diff --git a/OpenSim/Server/ServerMain.cs b/OpenSim/Server/ServerMain.cs index 96b0a82abf..2f2eb28441 100644 --- a/OpenSim/Server/ServerMain.cs +++ b/OpenSim/Server/ServerMain.cs @@ -55,6 +55,7 @@ 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;