aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2015-09-09 23:17:18 +0100
committerUbitUmarov2015-09-09 23:17:18 +0100
commitb93412972eb992b31864dd03e4dda2b235f2244e (patch)
treed59d7785e5299fd48319147a0dbe34cbb63c8a8e /OpenSim
parentminor clean, letting small classes be own module class (diff)
downloadopensim-SC_OLD-b93412972eb992b31864dd03e4dda2b235f2244e.zip
opensim-SC_OLD-b93412972eb992b31864dd03e4dda2b235f2244e.tar.gz
opensim-SC_OLD-b93412972eb992b31864dd03e4dda2b235f2244e.tar.bz2
opensim-SC_OLD-b93412972eb992b31864dd03e4dda2b235f2244e.tar.xz
revert SynchronousRestObjectRequester timeout to miliseconds, and fix where it was wrong set in seconds
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/WebUtil.cs2
-rw-r--r--OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs4
2 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs
index f834baa..3436984 100644
--- a/OpenSim/Framework/WebUtil.cs
+++ b/OpenSim/Framework/WebUtil.cs
@@ -1246,7 +1246,7 @@ namespace OpenSim.Framework
1246 auth.AddAuthorization(ht.Headers); 1246 auth.AddAuthorization(ht.Headers);
1247 1247
1248 if (pTimeout != 0) 1248 if (pTimeout != 0)
1249 request.Timeout = pTimeout * 1000; 1249 request.Timeout = pTimeout;
1250 1250
1251 if (maxConnections > 0 && ht.ServicePoint.ConnectionLimit < maxConnections) 1251 if (maxConnections > 0 && ht.ServicePoint.ConnectionLimit < maxConnections)
1252 ht.ServicePoint.ConnectionLimit = maxConnections; 1252 ht.ServicePoint.ConnectionLimit = maxConnections;
diff --git a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs
index 8f3cb80..8529f92 100644
--- a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs
+++ b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs
@@ -322,7 +322,7 @@ namespace OpenSim.Services.Connectors
322 bool success = false; 322 bool success = false;
323 try 323 try
324 { 324 {
325 AssetBase a = SynchronousRestObjectRequester.MakeRequest<int, AssetBase>("GET", uri, 0, 30); 325 AssetBase a = SynchronousRestObjectRequester.MakeRequest<int, AssetBase>("GET", uri, 0, 30000);
326 if (a != null) 326 if (a != null)
327 { 327 {
328 if (m_Cache != null) 328 if (m_Cache != null)
@@ -481,7 +481,7 @@ namespace OpenSim.Services.Connectors
481 try 481 try
482 { 482 {
483 newID = SynchronousRestObjectRequester. 483 newID = SynchronousRestObjectRequester.
484 MakeRequest<AssetBase, string>("POST", uri, asset, 100); 484 MakeRequest<AssetBase, string>("POST", uri, asset, 100000);
485 if (newID == null || newID == "") 485 if (newID == null || newID == "")
486 { 486 {
487 newID = UUID.Zero.ToString(); 487 newID = UUID.Zero.ToString();