diff options
author | Melanie | 2011-05-08 19:50:35 +0200 |
---|---|---|
committer | Melanie | 2011-05-08 19:50:35 +0200 |
commit | 763666e2d6e82dac4ae1514df8dcbe376c6f4cac (patch) | |
tree | 87a29b0a8985b73052a2a7a4f065b4eb586a97eb /OpenSim/Services | |
parent | Allow attachments to track the user's camera (diff) | |
download | opensim-SC-763666e2d6e82dac4ae1514df8dcbe376c6f4cac.zip opensim-SC-763666e2d6e82dac4ae1514df8dcbe376c6f4cac.tar.gz opensim-SC-763666e2d6e82dac4ae1514df8dcbe376c6f4cac.tar.bz2 opensim-SC-763666e2d6e82dac4ae1514df8dcbe376c6f4cac.tar.xz |
Enable compressed (gzip) fatpack transfers.
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs index 3b49ab7..0badbb9 100644 --- a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs +++ b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs | |||
@@ -102,12 +102,21 @@ namespace OpenSim.Services.Connectors.Simulation | |||
102 | args["destination_uuid"] = OSD.FromString(destination.RegionID.ToString()); | 102 | args["destination_uuid"] = OSD.FromString(destination.RegionID.ToString()); |
103 | args["teleport_flags"] = OSD.FromString(flags.ToString()); | 103 | args["teleport_flags"] = OSD.FromString(flags.ToString()); |
104 | 104 | ||
105 | OSDMap result = WebUtil.PostToService(uri, args, 30000); | 105 | OSDMap result = WebUtil.PostToServiceCompressed(uri, args, 30000); |
106 | if (result["Success"].AsBoolean()) | 106 | if (result["Success"].AsBoolean()) |
107 | return true; | 107 | return true; |
108 | 108 | ||
109 | result = WebUtil.PostToService(uri, args, 30000); | ||
110 | |||
111 | if (result["Success"].AsBoolean()) | ||
112 | { | ||
113 | m_log.WarnFormat( | ||
114 | "[REMOTE SIMULATION CONNECTOR]: Remote simulator {0} did not accept compressed transfer, suggest updating it.", destination.RegionName); | ||
115 | return true; | ||
116 | } | ||
117 | |||
109 | m_log.WarnFormat( | 118 | m_log.WarnFormat( |
110 | "[REMOTE SIMULATION CONNECTOR]: Failed to create agent {0} {1} at remote simulator {1}", | 119 | "[REMOTE SIMULATION CONNECTOR]: Failed to create agent {0} {1} at remote simulator {2}", |
111 | aCircuit.firstname, aCircuit.lastname, destination.RegionName); | 120 | aCircuit.firstname, aCircuit.lastname, destination.RegionName); |
112 | reason = result["Message"] != null ? result["Message"].AsString() : "error"; | 121 | reason = result["Message"] != null ? result["Message"].AsString() : "error"; |
113 | return false; | 122 | return false; |
@@ -274,7 +283,7 @@ namespace OpenSim.Services.Connectors.Simulation | |||
274 | 283 | ||
275 | try | 284 | try |
276 | { | 285 | { |
277 | OSDMap result = WebUtil.ServiceOSDRequest(uri, request, "QUERYACCESS", 10000); | 286 | OSDMap result = WebUtil.ServiceOSDRequest(uri, request, "QUERYACCESS", 10000, false); |
278 | bool success = result["success"].AsBoolean(); | 287 | bool success = result["success"].AsBoolean(); |
279 | if (result.ContainsKey("_Result")) | 288 | if (result.ContainsKey("_Result")) |
280 | { | 289 | { |
@@ -330,7 +339,7 @@ namespace OpenSim.Services.Connectors.Simulation | |||
330 | 339 | ||
331 | try | 340 | try |
332 | { | 341 | { |
333 | WebUtil.ServiceOSDRequest(uri, null, "DELETE", 10000); | 342 | WebUtil.ServiceOSDRequest(uri, null, "DELETE", 10000, false); |
334 | } | 343 | } |
335 | catch (Exception e) | 344 | catch (Exception e) |
336 | { | 345 | { |
@@ -348,7 +357,7 @@ namespace OpenSim.Services.Connectors.Simulation | |||
348 | 357 | ||
349 | try | 358 | try |
350 | { | 359 | { |
351 | WebUtil.ServiceOSDRequest(uri, null, "DELETE", 10000); | 360 | WebUtil.ServiceOSDRequest(uri, null, "DELETE", 10000, false); |
352 | } | 361 | } |
353 | catch (Exception e) | 362 | catch (Exception e) |
354 | { | 363 | { |