reduce ServicePointManager.DefaultConnectionLimit back 12 for os other than windows

This commit is contained in:
UbitUmarov
2020-04-21 23:05:53 +01:00
parent 1475b83699
commit 6b6baa9e51

View File

@@ -77,12 +77,12 @@ namespace OpenSim
Culture.SetCurrentCulture();
Culture.SetDefaultCurrentCulture();
//if(Util.IsWindows())
if(Util.IsWindows())
ServicePointManager.DefaultConnectionLimit = 32;
//else
//{
// ServicePointManager.DefaultConnectionLimit = 32;
//}
else
{
ServicePointManager.DefaultConnectionLimit = 12;
}
try { ServicePointManager.DnsRefreshTimeout = 5000; } catch { }
ServicePointManager.Expect100Continue = false;