mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
try reduce number of this webrequest will keep alive anf gc will possible forget to release. this higher numbers should be only relative to robuts, generic connectiosn should have a lot less. But hard to control on current code
This commit is contained in:
@@ -71,13 +71,13 @@ namespace OpenSim
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
// First line, hook the appdomain to the crash reporter
|
||||
AppDomain.CurrentDomain.UnhandledException +=
|
||||
new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
|
||||
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
|
||||
|
||||
Culture.SetCurrentCulture();
|
||||
Culture.SetDefaultCurrentCulture();
|
||||
|
||||
ServicePointManager.DefaultConnectionLimit = 64;
|
||||
ServicePointManager.DefaultConnectionLimit = 32;
|
||||
ServicePointManager.MaxServicePointIdleTime = 30000;
|
||||
|
||||
try { ServicePointManager.DnsRefreshTimeout = 5000; } catch { }
|
||||
ServicePointManager.Expect100Continue = false;
|
||||
|
||||
@@ -80,7 +80,9 @@ namespace OpenSim.Server
|
||||
Culture.SetCurrentCulture();
|
||||
Culture.SetDefaultCurrentCulture();
|
||||
|
||||
ServicePointManager.DefaultConnectionLimit = 64;
|
||||
ServicePointManager.DefaultConnectionLimit = 32;
|
||||
ServicePointManager.MaxServicePointIdleTime = 30000;
|
||||
|
||||
ServicePointManager.Expect100Continue = false;
|
||||
ServicePointManager.UseNagleAlgorithm = false;
|
||||
ServicePointManager.ServerCertificateValidationCallback = ValidateServerCertificate;
|
||||
|
||||
Reference in New Issue
Block a user