reduce ServicePointManager.DefaultConnectionLimit back 12 for os other than windows
parent
1475b83699
commit
6b6baa9e51
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue