a bit more on ServicePointManager
parent
948138a3a4
commit
086eb28a91
|
@ -74,11 +74,12 @@ namespace OpenSim
|
||||||
AppDomain.CurrentDomain.UnhandledException +=
|
AppDomain.CurrentDomain.UnhandledException +=
|
||||||
new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
|
new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
|
||||||
|
|
||||||
if(!Util.IsWindows())
|
if(Util.IsWindows())
|
||||||
ServicePointManager.DefaultConnectionLimit = 12;
|
|
||||||
else
|
|
||||||
ServicePointManager.DefaultConnectionLimit = 32;
|
ServicePointManager.DefaultConnectionLimit = 32;
|
||||||
|
else
|
||||||
|
ServicePointManager.DefaultConnectionLimit = 12;
|
||||||
|
|
||||||
|
ServicePointManager.Expect100Continue = false;
|
||||||
ServicePointManager.UseNagleAlgorithm = false;
|
ServicePointManager.UseNagleAlgorithm = false;
|
||||||
|
|
||||||
// Add the arguments supplied when running the application to the configuration
|
// Add the arguments supplied when running the application to the configuration
|
||||||
|
|
|
@ -55,6 +55,7 @@ namespace OpenSim.Server
|
||||||
public static int Main(string[] args)
|
public static int Main(string[] args)
|
||||||
{
|
{
|
||||||
ServicePointManager.DefaultConnectionLimit = 64;
|
ServicePointManager.DefaultConnectionLimit = 64;
|
||||||
|
ServicePointManager.Expect100Continue = false;
|
||||||
ServicePointManager.UseNagleAlgorithm = false;
|
ServicePointManager.UseNagleAlgorithm = false;
|
||||||
|
|
||||||
m_Server = new HttpServerBase("R.O.B.U.S.T.", args);
|
m_Server = new HttpServerBase("R.O.B.U.S.T.", args);
|
||||||
|
|
Loading…
Reference in New Issue