diff options
Diffstat (limited to 'OpenSim/Region')
5 files changed, 49 insertions, 20 deletions
diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs index 3a4e5df..6215055 100644 --- a/OpenSim/Region/Application/Application.cs +++ b/OpenSim/Region/Application/Application.cs | |||
@@ -75,6 +75,7 @@ namespace OpenSim | |||
75 | new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); | 75 | new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); |
76 | 76 | ||
77 | ServicePointManager.DefaultConnectionLimit = 12; | 77 | ServicePointManager.DefaultConnectionLimit = 12; |
78 | ServicePointManager.UseNagleAlgorithm = false; | ||
78 | 79 | ||
79 | // Add the arguments supplied when running the application to the configuration | 80 | // Add the arguments supplied when running the application to the configuration |
80 | ArgvConfigSource configSource = new ArgvConfigSource(args); | 81 | ArgvConfigSource configSource = new ArgvConfigSource(args); |
diff --git a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs index d359ebc..db8405b 100644 --- a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs | |||
@@ -1239,19 +1239,25 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles | |||
1239 | return false; | 1239 | return false; |
1240 | } | 1240 | } |
1241 | 1241 | ||
1242 | Stream rstream = webResponse.GetResponseStream(); | ||
1243 | |||
1244 | OSDMap mret = new OSDMap(); | 1242 | OSDMap mret = new OSDMap(); |
1245 | try | 1243 | |
1246 | { | 1244 | using (Stream rstream = webResponse.GetResponseStream()) |
1247 | mret = (OSDMap)OSDParser.DeserializeJson(rstream); | ||
1248 | } | ||
1249 | catch (Exception e) | ||
1250 | { | 1245 | { |
1251 | m_log.DebugFormat("[PROFILES]: JsonRpcRequest Error {0} - remote user with legacy profiles?", e.Message); | 1246 | try |
1252 | return false; | 1247 | { |
1248 | mret = (OSDMap)OSDParser.DeserializeJson(rstream); | ||
1249 | } | ||
1250 | catch (Exception e) | ||
1251 | { | ||
1252 | m_log.DebugFormat("[PROFILES]: JsonRpcRequest Error {0} - remote user with legacy profiles?", e.Message); | ||
1253 | if (webResponse != null) | ||
1254 | webResponse.Close(); | ||
1255 | return false; | ||
1256 | } | ||
1253 | } | 1257 | } |
1254 | 1258 | ||
1259 | if (webResponse != null) | ||
1260 | webResponse.Close(); | ||
1255 | 1261 | ||
1256 | if (mret.ContainsKey("error")) | 1262 | if (mret.ContainsKey("error")) |
1257 | return false; | 1263 | return false; |
@@ -1315,19 +1321,26 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles | |||
1315 | return false; | 1321 | return false; |
1316 | } | 1322 | } |
1317 | 1323 | ||
1318 | Stream rstream = webResponse.GetResponseStream(); | ||
1319 | |||
1320 | OSDMap response = new OSDMap(); | 1324 | OSDMap response = new OSDMap(); |
1321 | try | 1325 | |
1322 | { | 1326 | using (Stream rstream = webResponse.GetResponseStream()) |
1323 | response = (OSDMap)OSDParser.DeserializeJson(rstream); | ||
1324 | } | ||
1325 | catch (Exception e) | ||
1326 | { | 1327 | { |
1327 | m_log.DebugFormat("[PROFILES]: JsonRpcRequest Error {0} - remote user with legacy profiles?", e.Message); | 1328 | try |
1328 | return false; | 1329 | { |
1330 | response = (OSDMap)OSDParser.DeserializeJson(rstream); | ||
1331 | } | ||
1332 | catch (Exception e) | ||
1333 | { | ||
1334 | m_log.DebugFormat("[PROFILES]: JsonRpcRequest Error {0} - remote user with legacy profiles?", e.Message); | ||
1335 | if (webResponse != null) | ||
1336 | webResponse.Close(); | ||
1337 | return false; | ||
1338 | } | ||
1329 | } | 1339 | } |
1330 | 1340 | ||
1341 | if (webResponse != null) | ||
1342 | webResponse.Close(); | ||
1343 | |||
1331 | if(response.ContainsKey("error")) | 1344 | if(response.ContainsKey("error")) |
1332 | { | 1345 | { |
1333 | data = response["error"]; | 1346 | data = response["error"]; |
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 19c068a..b735f36 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -868,6 +868,10 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
868 | // Let's send a full update of the agent. This is a synchronous call. | 868 | // Let's send a full update of the agent. This is a synchronous call. |
869 | AgentData agent = new AgentData(); | 869 | AgentData agent = new AgentData(); |
870 | sp.CopyTo(agent); | 870 | sp.CopyTo(agent); |
871 | |||
872 | if ((teleportFlags & (uint)TeleportFlags.IsFlying) != 0) | ||
873 | agent.ControlFlags |= (uint)AgentManager.ControlFlags.AGENT_CONTROL_FLY; | ||
874 | |||
871 | agent.Position = agentCircuit.startpos; | 875 | agent.Position = agentCircuit.startpos; |
872 | SetCallbackURL(agent, sp.Scene.RegionInfo); | 876 | SetCallbackURL(agent, sp.Scene.RegionInfo); |
873 | 877 | ||
@@ -1109,6 +1113,10 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
1109 | AgentData agent = new AgentData(); | 1113 | AgentData agent = new AgentData(); |
1110 | sp.CopyTo(agent); | 1114 | sp.CopyTo(agent); |
1111 | agent.Position = agentCircuit.startpos; | 1115 | agent.Position = agentCircuit.startpos; |
1116 | |||
1117 | if ((teleportFlags & (uint)TeleportFlags.IsFlying) != 0) | ||
1118 | agent.ControlFlags |= (uint)AgentManager.ControlFlags.AGENT_CONTROL_FLY; | ||
1119 | |||
1112 | agent.SenderWantsToWaitForRoot = true; | 1120 | agent.SenderWantsToWaitForRoot = true; |
1113 | //SetCallbackURL(agent, sp.Scene.RegionInfo); | 1121 | //SetCallbackURL(agent, sp.Scene.RegionInfo); |
1114 | 1122 | ||
diff --git a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs index 0c0a7aa..78c050a 100644 --- a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs +++ b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs | |||
@@ -391,6 +391,7 @@ namespace OpenSim.Region.DataSnapshot | |||
391 | { | 391 | { |
392 | m_log.Warn("[DATASNAPSHOT]: Ignoring unknown exception " + e.ToString()); | 392 | m_log.Warn("[DATASNAPSHOT]: Ignoring unknown exception " + e.ToString()); |
393 | } | 393 | } |
394 | |||
394 | byte[] response = new byte[1024]; | 395 | byte[] response = new byte[1024]; |
395 | // int n = 0; | 396 | // int n = 0; |
396 | try | 397 | try |
@@ -405,6 +406,9 @@ namespace OpenSim.Region.DataSnapshot | |||
405 | // This is not quite working, so... | 406 | // This is not quite working, so... |
406 | // string responseStr = Util.UTF8.GetString(response); | 407 | // string responseStr = Util.UTF8.GetString(response); |
407 | m_log.Info("[DATASNAPSHOT]: data service " + url + " notified. Secret: " + m_Secret); | 408 | m_log.Info("[DATASNAPSHOT]: data service " + url + " notified. Secret: " + m_Secret); |
409 | |||
410 | if(reply != null) | ||
411 | reply.Close(); | ||
408 | } | 412 | } |
409 | 413 | ||
410 | } | 414 | } |
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index fd1bab6..9d06c26 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -4268,14 +4268,17 @@ namespace OpenSim.Region.Framework.Scenes | |||
4268 | GodLevel = cAgent.GodLevel; | 4268 | GodLevel = cAgent.GodLevel; |
4269 | SetAlwaysRun = cAgent.AlwaysRun; | 4269 | SetAlwaysRun = cAgent.AlwaysRun; |
4270 | 4270 | ||
4271 | |||
4271 | Appearance = new AvatarAppearance(cAgent.Appearance); | 4272 | Appearance = new AvatarAppearance(cAgent.Appearance); |
4273 | /* | ||
4274 | bool isFlying = ((m_AgentControlFlags & AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0); | ||
4275 | |||
4272 | if (PhysicsActor != null) | 4276 | if (PhysicsActor != null) |
4273 | { | 4277 | { |
4274 | bool isFlying = Flying; | ||
4275 | RemoveFromPhysicalScene(); | 4278 | RemoveFromPhysicalScene(); |
4276 | AddToPhysicalScene(isFlying); | 4279 | AddToPhysicalScene(isFlying); |
4277 | } | 4280 | } |
4278 | 4281 | */ | |
4279 | try | 4282 | try |
4280 | { | 4283 | { |
4281 | lock (scriptedcontrols) | 4284 | lock (scriptedcontrols) |