diff options
author | UbitUmarov | 2017-05-23 00:52:40 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-23 00:52:40 +0100 |
commit | 7b80bcc57a4d7be5d518e83408e063a71ce0eb4c (patch) | |
tree | 0035e197830e25f3da72e314ec9b2c56283f3085 /OpenSim/Server/ServerMain.cs | |
parent | remember mono about the default for DnsRefreshTimeout (diff) | |
download | opensim-SC-7b80bcc57a4d7be5d518e83408e063a71ce0eb4c.zip opensim-SC-7b80bcc57a4d7be5d518e83408e063a71ce0eb4c.tar.gz opensim-SC-7b80bcc57a4d7be5d518e83408e063a71ce0eb4c.tar.bz2 opensim-SC-7b80bcc57a4d7be5d518e83408e063a71ce0eb4c.tar.xz |
no all mono versions know DnsRefreshTimeout
Diffstat (limited to 'OpenSim/Server/ServerMain.cs')
-rw-r--r-- | OpenSim/Server/ServerMain.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Server/ServerMain.cs b/OpenSim/Server/ServerMain.cs index 2f2eb28..341c227 100644 --- a/OpenSim/Server/ServerMain.cs +++ b/OpenSim/Server/ServerMain.cs | |||
@@ -55,10 +55,12 @@ namespace OpenSim.Server | |||
55 | public static int Main(string[] args) | 55 | public static int Main(string[] args) |
56 | { | 56 | { |
57 | ServicePointManager.DefaultConnectionLimit = 64; | 57 | ServicePointManager.DefaultConnectionLimit = 64; |
58 | ServicePointManager.DnsRefreshTimeout = 120000; // just is case mono decides to have it infinity | ||
59 | ServicePointManager.Expect100Continue = false; | 58 | ServicePointManager.Expect100Continue = false; |
60 | ServicePointManager.UseNagleAlgorithm = false; | 59 | ServicePointManager.UseNagleAlgorithm = false; |
61 | 60 | ||
61 | try { ServicePointManager.DnsRefreshTimeout = 120000; } // just is case some mono decides to have it infinity | ||
62 | catch { } | ||
63 | |||
62 | m_Server = new HttpServerBase("R.O.B.U.S.T.", args); | 64 | m_Server = new HttpServerBase("R.O.B.U.S.T.", args); |
63 | 65 | ||
64 | string registryLocation; | 66 | string registryLocation; |