diff options
-rw-r--r-- | OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs index ee047e0..2ba8e04 100644 --- a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs +++ b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs | |||
@@ -117,8 +117,16 @@ namespace OpenSim.Services.Connectors | |||
117 | 117 | ||
118 | if (asset == null) | 118 | if (asset == null) |
119 | { | 119 | { |
120 | asset = SynchronousRestObjectRequester. | 120 | // XXX: Commented out for now since this has either never been properly operational or not for some time |
121 | MakeRequest<int, AssetBase>("GET", uri, 0, m_maxAssetRequestConcurrency); | 121 | // as m_maxAssetRequestConcurrency was being passed as the timeout, not a concurrency limiting option. |
122 | // Wasn't noticed before because timeout wasn't actually used. | ||
123 | // Not attempting concurrency setting for now as this omission was discovered in release candidate | ||
124 | // phase for OpenSimulator 0.8. Need to revisit afterwards. | ||
125 | // asset | ||
126 | // = SynchronousRestObjectRequester.MakeRequest<int, AssetBase>( | ||
127 | // "GET", uri, 0, m_maxAssetRequestConcurrency); | ||
128 | |||
129 | asset = SynchronousRestObjectRequester.MakeRequest<int, AssetBase>("GET", uri, 0); | ||
122 | 130 | ||
123 | if (m_Cache != null) | 131 | if (m_Cache != null) |
124 | m_Cache.Cache(asset); | 132 | m_Cache.Cache(asset); |
@@ -148,8 +156,7 @@ namespace OpenSim.Services.Connectors | |||
148 | 156 | ||
149 | string uri = m_ServerURI + "/assets/" + id + "/metadata"; | 157 | string uri = m_ServerURI + "/assets/" + id + "/metadata"; |
150 | 158 | ||
151 | AssetMetadata asset = SynchronousRestObjectRequester. | 159 | AssetMetadata asset = SynchronousRestObjectRequester.MakeRequest<int, AssetMetadata>("GET", uri, 0); |
152 | MakeRequest<int, AssetMetadata>("GET", uri, 0); | ||
153 | return asset; | 160 | return asset; |
154 | } | 161 | } |
155 | 162 | ||
@@ -290,8 +297,7 @@ namespace OpenSim.Services.Connectors | |||
290 | string newID; | 297 | string newID; |
291 | try | 298 | try |
292 | { | 299 | { |
293 | newID = SynchronousRestObjectRequester. | 300 | newID = SynchronousRestObjectRequester.MakeRequest<AssetBase, string>("POST", uri, asset); |
294 | MakeRequest<AssetBase, string>("POST", uri, asset); | ||
295 | } | 301 | } |
296 | catch (Exception e) | 302 | catch (Exception e) |
297 | { | 303 | { |
@@ -337,8 +343,7 @@ namespace OpenSim.Services.Connectors | |||
337 | 343 | ||
338 | string uri = m_ServerURI + "/assets/" + id; | 344 | string uri = m_ServerURI + "/assets/" + id; |
339 | 345 | ||
340 | if (SynchronousRestObjectRequester. | 346 | if (SynchronousRestObjectRequester.MakeRequest<AssetBase, bool>("POST", uri, asset)) |
341 | MakeRequest<AssetBase, bool>("POST", uri, asset)) | ||
342 | { | 347 | { |
343 | if (m_Cache != null) | 348 | if (m_Cache != null) |
344 | m_Cache.Cache(asset); | 349 | m_Cache.Cache(asset); |
@@ -352,8 +357,7 @@ namespace OpenSim.Services.Connectors | |||
352 | { | 357 | { |
353 | string uri = m_ServerURI + "/assets/" + id; | 358 | string uri = m_ServerURI + "/assets/" + id; |
354 | 359 | ||
355 | if (SynchronousRestObjectRequester. | 360 | if (SynchronousRestObjectRequester.MakeRequest<int, bool>("DELETE", uri, 0)) |
356 | MakeRequest<int, bool>("DELETE", uri, 0)) | ||
357 | { | 361 | { |
358 | if (m_Cache != null) | 362 | if (m_Cache != null) |
359 | m_Cache.Expire(id); | 363 | m_Cache.Expire(id); |