aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
diff options
context:
space:
mode:
authorUbitUmarov2014-08-12 23:57:41 +0100
committerUbitUmarov2014-08-12 23:57:41 +0100
commit20b3cab5d1cb1bbbe951a90ae6de7ffb495e6375 (patch)
treef32e183217a74d24ed5816bf7d6b6c33a44bdf6c /OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
parentdo the significance test invalidation at MoveAgentToRegion (diff)
downloadopensim-SC_OLD-20b3cab5d1cb1bbbe951a90ae6de7ffb495e6375.zip
opensim-SC_OLD-20b3cab5d1cb1bbbe951a90ae6de7ffb495e6375.tar.gz
opensim-SC_OLD-20b3cab5d1cb1bbbe951a90ae6de7ffb495e6375.tar.bz2
opensim-SC_OLD-20b3cab5d1cb1bbbe951a90ae6de7ffb495e6375.tar.xz
take agentUpdate checks out of llUDPserver (disabling useless debug) and
do it only where its supposed to be done..
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs22
1 files changed, 3 insertions, 19 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
index 0bb53c4..15d0316 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
@@ -731,7 +731,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
731 "debug lludp status", 731 "debug lludp status",
732 "Return status of LLUDP packet processing.", 732 "Return status of LLUDP packet processing.",
733 HandleStatusCommand); 733 HandleStatusCommand);
734 734/* disabled
735 MainConsole.Instance.Commands.AddCommand( 735 MainConsole.Instance.Commands.AddCommand(
736 "Debug", 736 "Debug",
737 false, 737 false,
@@ -739,6 +739,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
739 "debug lludp toggle agentupdate", 739 "debug lludp toggle agentupdate",
740 "Toggle whether agentupdate packets are processed or simply discarded.", 740 "Toggle whether agentupdate packets are processed or simply discarded.",
741 HandleAgentUpdateCommand); 741 HandleAgentUpdateCommand);
742 */
742 } 743 }
743 744
744 private void HandlePacketCommand(string module, string[] args) 745 private void HandlePacketCommand(string module, string[] args)
@@ -1553,24 +1554,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1553 LogPacketHeader(true, udpClient.CircuitCode, 0, packet.Type, (ushort)packet.Length); 1554 LogPacketHeader(true, udpClient.CircuitCode, 0, packet.Type, (ushort)packet.Length);
1554 #endregion BinaryStats 1555 #endregion BinaryStats
1555 1556
1556 if (packet.Type == PacketType.AgentUpdate) 1557// AgentUpdate mess removed from here
1557 {
1558 if (m_discardAgentUpdates)
1559 return;
1560
1561 ((LLClientView)client).TotalAgentUpdates++;
1562
1563 AgentUpdatePacket agentUpdate = (AgentUpdatePacket)packet;
1564
1565 LLClientView llClient = client as LLClientView;
1566 if (agentUpdate.AgentData.SessionID != client.SessionId
1567 || agentUpdate.AgentData.AgentID != client.AgentId
1568 || !(llClient == null || llClient.CheckAgentUpdateSignificance(agentUpdate.AgentData)) )
1569 {
1570 PacketPool.Instance.ReturnPacket(packet);
1571 return;
1572 }
1573 }
1574 1558
1575 #region Ping Check Handling 1559 #region Ping Check Handling
1576 1560