aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs12
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs18
2 files changed, 7 insertions, 23 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
index bc75d82..e0cca05 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
@@ -859,17 +859,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
859 switch (category) 859 switch (category)
860 { 860 {
861 case ThrottleOutPacketType.Land: 861 case ThrottleOutPacketType.Land:
862 return ThrottleOutPacketTypeFlags.Land; 862 return ThrottleOutPacketTypeFlags.Land; // Terrain data
863 case ThrottleOutPacketType.Wind: 863 case ThrottleOutPacketType.Wind:
864 return ThrottleOutPacketTypeFlags.Wind; 864 return ThrottleOutPacketTypeFlags.Wind; // Wind data
865 case ThrottleOutPacketType.Cloud: 865 case ThrottleOutPacketType.Cloud:
866 return ThrottleOutPacketTypeFlags.Cloud; 866 return ThrottleOutPacketTypeFlags.Cloud; // Cloud data
867 case ThrottleOutPacketType.Task: 867 case ThrottleOutPacketType.Task:
868 return ThrottleOutPacketTypeFlags.Task; 868 return ThrottleOutPacketTypeFlags.Task; // Object updates and everything not on the other categories
869 case ThrottleOutPacketType.Texture: 869 case ThrottleOutPacketType.Texture:
870 return ThrottleOutPacketTypeFlags.Texture; 870 return ThrottleOutPacketTypeFlags.Texture; // Textures data (also impacts http texture and mesh by default)
871 case ThrottleOutPacketType.Asset: 871 case ThrottleOutPacketType.Asset:
872 return ThrottleOutPacketTypeFlags.Asset; 872 return ThrottleOutPacketTypeFlags.Asset; // Non-texture Assets data
873 default: 873 default:
874 return 0; 874 return 0;
875 } 875 }
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
index 0bfd86c..7f6a292 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
@@ -182,22 +182,6 @@ namespace OpenMetaverse
182 try { m_udpSocket.Close(); } catch { } 182 try { m_udpSocket.Close(); } catch { }
183 } 183 }
184 184
185 public UDPPacketBuffer GetNewUDPBuffer()
186 {
187 lock (m_udpBuffersPoolLock)
188 {
189 if (m_udpBuffersPoolPtr >= 0)
190 {
191 UDPPacketBuffer buf = m_udpBuffersPool[m_udpBuffersPoolPtr];
192 m_udpBuffersPool[m_udpBuffersPoolPtr] = null;
193 m_udpBuffersPoolPtr--;
194 buf.RemoteEndPoint = new IPEndPoint(IPAddress.Any, 0);
195 return buf;
196 }
197 }
198 return new UDPPacketBuffer(new IPEndPoint(IPAddress.Any, 0));
199 }
200
201 public UDPPacketBuffer GetNewUDPBuffer(IPEndPoint remoteEndpoint) 185 public UDPPacketBuffer GetNewUDPBuffer(IPEndPoint remoteEndpoint)
202 { 186 {
203 lock (m_udpBuffersPoolLock) 187 lock (m_udpBuffersPoolLock)
@@ -353,7 +337,7 @@ namespace OpenMetaverse
353 if (!IsRunningInbound) 337 if (!IsRunningInbound)
354 return; 338 return;
355 339
356 UDPPacketBuffer buf = GetNewUDPBuffer(); 340 UDPPacketBuffer buf = GetNewUDPBuffer(new IPEndPoint(IPAddress.Any, 0)); // we need a fresh one here, for now at least
357 try 341 try
358 { 342 {
359 // kick off an async read 343 // kick off an async read