aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDiva Canto2015-11-29 09:48:17 -0800
committerDiva Canto2015-11-29 09:48:17 -0800
commit1aa0234408a240742a1067f3a59ddff1a0d2abdb (patch)
treeb4dc5ce7a6c8c016ace8d4159f991e48b266f646
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC-1aa0234408a240742a1067f3a59ddff1a0d2abdb.zip
opensim-SC-1aa0234408a240742a1067f3a59ddff1a0d2abdb.tar.gz
opensim-SC-1aa0234408a240742a1067f3a59ddff1a0d2abdb.tar.bz2
opensim-SC-1aa0234408a240742a1067f3a59ddff1a0d2abdb.tar.xz
Trying to make http requests less slow, according to http://stackoverflow.com/questions/2519655/httpwebrequest-is-extremely-slow
-rw-r--r--OpenSim/Framework/WebUtil.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs
index 3436984..13aa0c2 100644
--- a/OpenSim/Framework/WebUtil.cs
+++ b/OpenSim/Framework/WebUtil.cs
@@ -244,6 +244,7 @@ namespace OpenSim.Framework
244 request.Method = method; 244 request.Method = method;
245 request.Timeout = timeout; 245 request.Timeout = timeout;
246 request.KeepAlive = false; 246 request.KeepAlive = false;
247 request.Proxy = null;
247 request.MaximumAutomaticRedirections = 10; 248 request.MaximumAutomaticRedirections = 10;
248 request.ReadWriteTimeout = timeout / 4; 249 request.ReadWriteTimeout = timeout / 4;
249 request.Headers[OSHeaderRequestID] = reqnum.ToString(); 250 request.Headers[OSHeaderRequestID] = reqnum.ToString();
@@ -449,6 +450,7 @@ namespace OpenSim.Framework
449 request.Method = "POST"; 450 request.Method = "POST";
450 request.Timeout = timeout; 451 request.Timeout = timeout;
451 request.KeepAlive = false; 452 request.KeepAlive = false;
453 request.Proxy = null;
452 request.MaximumAutomaticRedirections = 10; 454 request.MaximumAutomaticRedirections = 10;
453 request.ReadWriteTimeout = timeout / 4; 455 request.ReadWriteTimeout = timeout / 4;
454 request.Headers[OSHeaderRequestID] = reqnum.ToString(); 456 request.Headers[OSHeaderRequestID] = reqnum.ToString();