mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
change UDPPacketBuffer pools (does waste a bit of memory)
This commit is contained in:
@@ -203,6 +203,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
if (ackedPacket != null)
|
||||
{
|
||||
m_packets.Remove(pendingAcknowledgement.SequenceNumber);
|
||||
ackedPacket.Client.FreeUDPBuffer(ackedPacket.Buffer);
|
||||
|
||||
// As with other network applications, assume that an acknowledged packet is an
|
||||
// indication that the network can handle a little more load, speed up the transmission
|
||||
@@ -241,6 +242,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
if (removedPacket != null)
|
||||
{
|
||||
m_packets.Remove(pendingRemove);
|
||||
removedPacket.Client.FreeUDPBuffer(removedPacket.Buffer);
|
||||
|
||||
// Update stats
|
||||
Interlocked.Add(ref removedPacket.Client.UnackedBytes, -removedPacket.Buffer.DataLength);
|
||||
|
||||
Reference in New Issue
Block a user