aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
diff options
context:
space:
mode:
authorRobert Adams2014-08-21 06:36:19 -0700
committerRobert Adams2014-08-21 06:36:19 -0700
commit7ba3b88fb66de8c22ae1e067224b40214c23957c (patch)
tree24fec969bc6894d273565bb4d53da0b4196dae90 /OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
parentFix typo in OpenSimDefaults.ini comment (diff)
parentExtend drop command to "debug lludp drop <in|out>..." to allow drop of inboun... (diff)
downloadopensim-SC_OLD-7ba3b88fb66de8c22ae1e067224b40214c23957c.zip
opensim-SC_OLD-7ba3b88fb66de8c22ae1e067224b40214c23957c.tar.gz
opensim-SC_OLD-7ba3b88fb66de8c22ae1e067224b40214c23957c.tar.bz2
opensim-SC_OLD-7ba3b88fb66de8c22ae1e067224b40214c23957c.tar.xz
Merge branch 'master' into bullet-2.82
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs58
1 files changed, 58 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index bfdb24f..c839c05 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -4201,6 +4201,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4201 } 4201 }
4202 } 4202 }
4203 4203
4204// m_log.DebugFormat(
4205// "[LLCLIENTVIEW]: Sent {0} updates in ProcessEntityUpdates() for {1} {2} in {3}",
4206// updatesThisCall, Name, SceneAgent.IsChildAgent ? "child" : "root", Scene.Name);
4207//
4204 #endregion Packet Sending 4208 #endregion Packet Sending
4205 } 4209 }
4206 4210
@@ -12337,6 +12341,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
12337 /// provide your own method.</param> 12341 /// provide your own method.</param>
12338 protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType, bool doAutomaticSplitting, UnackedPacketMethod method) 12342 protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType, bool doAutomaticSplitting, UnackedPacketMethod method)
12339 { 12343 {
12344 if (m_outPacketsToDrop != null)
12345 if (m_outPacketsToDrop.Contains(packet.Type.ToString()))
12346 return;
12347
12340 if (DebugPacketLevel > 0) 12348 if (DebugPacketLevel > 0)
12341 { 12349 {
12342 bool logPacket = true; 12350 bool logPacket = true;
@@ -12395,6 +12403,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
12395 /// <param name="Pack">OpenMetaverse.packet</param> 12403 /// <param name="Pack">OpenMetaverse.packet</param>
12396 public void ProcessInPacket(Packet packet) 12404 public void ProcessInPacket(Packet packet)
12397 { 12405 {
12406 if (m_inPacketsToDrop != null)
12407 if (m_inPacketsToDrop.Contains(packet.Type.ToString()))
12408 return;
12409
12398 if (DebugPacketLevel > 0) 12410 if (DebugPacketLevel > 0)
12399 { 12411 {
12400 bool logPacket = true; 12412 bool logPacket = true;
@@ -13119,5 +13131,51 @@ namespace OpenSim.Region.ClientStack.LindenUDP
13119 eq.Enqueue(BuildEvent("BulkUpdateInventory", 13131 eq.Enqueue(BuildEvent("BulkUpdateInventory",
13120 llsd), AgentId); 13132 llsd), AgentId);
13121 } 13133 }
13134
13135 private HashSet<string> m_outPacketsToDrop;
13136
13137 public bool AddOutPacketToDropSet(string packetName)
13138 {
13139 if (m_outPacketsToDrop == null)
13140 m_outPacketsToDrop = new HashSet<string>();
13141
13142 return m_outPacketsToDrop.Add(packetName);
13143 }
13144
13145 public bool RemoveOutPacketFromDropSet(string packetName)
13146 {
13147 if (m_outPacketsToDrop == null)
13148 return false;
13149
13150 return m_outPacketsToDrop.Remove(packetName);
13151 }
13152
13153 public HashSet<string> GetOutPacketDropSet()
13154 {
13155 return new HashSet<string>(m_outPacketsToDrop);
13156 }
13157
13158 private HashSet<string> m_inPacketsToDrop;
13159
13160 public bool AddInPacketToDropSet(string packetName)
13161 {
13162 if (m_inPacketsToDrop == null)
13163 m_inPacketsToDrop = new HashSet<string>();
13164
13165 return m_inPacketsToDrop.Add(packetName);
13166 }
13167
13168 public bool RemoveInPacketFromDropSet(string packetName)
13169 {
13170 if (m_inPacketsToDrop == null)
13171 return false;
13172
13173 return m_inPacketsToDrop.Remove(packetName);
13174 }
13175
13176 public HashSet<string> GetInPacketDropSet()
13177 {
13178 return new HashSet<string>(m_inPacketsToDrop);
13179 }
13122 } 13180 }
13123} 13181}