* Fixed issue where incorrect braces nesting resulted in a section of PacketQueue getting disabled.
* This means the recent memory fix should now be working correctly - so the current largest memory leak should be fixed. AssetCache still needs to be addressed however.0.6.1-post-fixes
parent
fb2a1a6b7c
commit
7308f35a96
|
@ -768,35 +768,33 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
// If we sent a killpacket
|
// If we sent a killpacket
|
||||||
if (packet is KillPacket)
|
if (packet is KillPacket)
|
||||||
{
|
|
||||||
Abort();
|
Abort();
|
||||||
|
|
||||||
// Actually make the byte array and send it
|
// Actually make the byte array and send it
|
||||||
byte[] sendbuffer = packet.ToBytes();
|
byte[] sendbuffer = packet.ToBytes();
|
||||||
|
|
||||||
//m_log.DebugFormat(
|
//m_log.DebugFormat(
|
||||||
// "[CLIENT]: In {0} sending packet {1}",
|
// "[CLIENT]: In {0} sending packet {1}",
|
||||||
// m_Client.Scene.RegionInfo.ExternalEndPoint.Port, packet.Header.Sequence);
|
// m_Client.Scene.RegionInfo.ExternalEndPoint.Port, packet.Header.Sequence);
|
||||||
|
|
||||||
if (packet.Header.Zerocoded)
|
if (packet.Header.Zerocoded)
|
||||||
{
|
{
|
||||||
int packetsize = Helpers.ZeroEncode(sendbuffer,
|
int packetsize = Helpers.ZeroEncode(sendbuffer,
|
||||||
sendbuffer.Length, m_ZeroOutBuffer);
|
sendbuffer.Length, m_ZeroOutBuffer);
|
||||||
m_PacketServer.SendPacketTo(m_ZeroOutBuffer, packetsize,
|
m_PacketServer.SendPacketTo(m_ZeroOutBuffer, packetsize,
|
||||||
SocketFlags.None, m_Client.CircuitCode);
|
SocketFlags.None, m_Client.CircuitCode);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Need some extra space in case we need to add proxy
|
|
||||||
// information to the message later
|
|
||||||
Buffer.BlockCopy(sendbuffer, 0, m_ZeroOutBuffer, 0,
|
|
||||||
sendbuffer.Length);
|
|
||||||
m_PacketServer.SendPacketTo(m_ZeroOutBuffer,
|
|
||||||
sendbuffer.Length, SocketFlags.None, m_Client.CircuitCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
PacketPool.Instance.ReturnPacket(packet);
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Need some extra space in case we need to add proxy
|
||||||
|
// information to the message later
|
||||||
|
Buffer.BlockCopy(sendbuffer, 0, m_ZeroOutBuffer, 0,
|
||||||
|
sendbuffer.Length);
|
||||||
|
m_PacketServer.SendPacketTo(m_ZeroOutBuffer,
|
||||||
|
sendbuffer.Length, SocketFlags.None, m_Client.CircuitCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
PacketPool.Instance.ReturnPacket(packet);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Abort()
|
private void Abort()
|
||||||
|
|
Loading…
Reference in New Issue