mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Fix the issue that stopped the packet pool from working. Add a mechanism
to recycley data blocs within a packet. Recycle the ObjectUpdate* data blocks. Speeds up loading even more. This may mean that the packet pool is now viable.
This commit is contained in:
@@ -586,7 +586,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
return;
|
||||
|
||||
m_NeedAck.Remove(id);
|
||||
PacketPool.Instance.ReturnPacket(data.Packet);
|
||||
// We can't return this packet, it will just have to be GC'd
|
||||
// Reason for that is that the packet may still be in the
|
||||
// send queue, and if it gets reused things get messy!
|
||||
//
|
||||
// PacketPool.Instance.ReturnPacket(data.Packet);
|
||||
m_UnackedBytes -= data.Length;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user