reduce ServicePointManager.DefaultConnectionLimit back 12 for os other than windows

master
UbitUmarov 2020-04-21 23:05:53 +01:00
parent 1475b83699
commit 6b6baa9e51
1 changed files with 5 additions and 5 deletions

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;