diff options
author | Diva Canto | 2015-11-29 09:48:17 -0800 |
---|---|---|
committer | Diva Canto | 2015-11-29 09:48:17 -0800 |
commit | 1aa0234408a240742a1067f3a59ddff1a0d2abdb (patch) | |
tree | b4dc5ce7a6c8c016ace8d4159f991e48b266f646 /OpenSim/Framework | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-1aa0234408a240742a1067f3a59ddff1a0d2abdb.zip opensim-SC_OLD-1aa0234408a240742a1067f3a59ddff1a0d2abdb.tar.gz opensim-SC_OLD-1aa0234408a240742a1067f3a59ddff1a0d2abdb.tar.bz2 opensim-SC_OLD-1aa0234408a240742a1067f3a59ddff1a0d2abdb.tar.xz |
Trying to make http requests less slow, according to http://stackoverflow.com/questions/2519655/httpwebrequest-is-extremely-slow
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/WebUtil.cs | 2 |
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(); |