diff options
author | Diva Canto | 2012-09-30 07:22:55 -0700 |
---|---|---|
committer | Diva Canto | 2012-09-30 07:22:55 -0700 |
commit | 531edd51d82ecd6a842a2611c99e9919634491ef (patch) | |
tree | 0e28069aa1b2278f91b9275f98db7990abb7d964 /OpenSim/Framework/Servers/HttpServer/RestSessionService.cs | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-531edd51d82ecd6a842a2611c99e9919634491ef.zip opensim-SC-531edd51d82ecd6a842a2611c99e9919634491ef.tar.gz opensim-SC-531edd51d82ecd6a842a2611c99e9919634491ef.tar.bz2 opensim-SC-531edd51d82ecd6a842a2611c99e9919634491ef.tar.xz |
Added request.Proxy=null everywhere, as discussed in http://stackoverflow.com/questions/2519655/httpwebrequest-is-extremely-slow.
Thanks R.Gunther (rigun@rigutech.nl) https://lists.berlios.de/pipermail/opensim-users/2012-September/010986.html
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/RestSessionService.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/RestSessionService.cs b/OpenSim/Framework/Servers/HttpServer/RestSessionService.cs index 19c03a8..1612d4a 100644 --- a/OpenSim/Framework/Servers/HttpServer/RestSessionService.cs +++ b/OpenSim/Framework/Servers/HttpServer/RestSessionService.cs | |||
@@ -74,6 +74,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
74 | 74 | ||
75 | WebRequest request = WebRequest.Create(requestUrl); | 75 | WebRequest request = WebRequest.Create(requestUrl); |
76 | request.Method = verb; | 76 | request.Method = verb; |
77 | request.Proxy = null; | ||
77 | request.ContentType = "text/xml"; | 78 | request.ContentType = "text/xml"; |
78 | request.Timeout = 20000; | 79 | request.Timeout = 20000; |
79 | 80 | ||
@@ -139,6 +140,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
139 | 140 | ||
140 | WebRequest request = WebRequest.Create(requestUrl); | 141 | WebRequest request = WebRequest.Create(requestUrl); |
141 | request.Method = verb; | 142 | request.Method = verb; |
143 | request.Proxy = null; | ||
142 | request.ContentType = "text/xml"; | 144 | request.ContentType = "text/xml"; |
143 | request.Timeout = 10000; | 145 | request.Timeout = 10000; |
144 | 146 | ||