From b84834c45b201c1a7a40ed134fe6796fe8233872 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Thu, 25 Jun 2009 07:59:58 +0000 Subject: commenting out expensive bits (who in the world even uses SetClientInfo()?) --- .../ClientStack/LindenUDP/LLPacketHandler.cs | 58 +++++++++++----------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs index 7e3d919..9e5eecc 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs @@ -679,37 +679,37 @@ namespace OpenSim.Region.ClientStack.LindenUDP public void SetClientInfo(ClientInfo info) { - m_PendingAcks = info.pendingAcks; - m_NeedAck = new Dictionary(); + // m_PendingAcks = info.pendingAcks; + // m_NeedAck = new Dictionary(); - Packet packet = null; - int packetEnd = 0; - byte[] zero = new byte[3000]; + // Packet packet = null; + // int packetEnd = 0; + // byte[] zero = new byte[3000]; - foreach (uint key in info.needAck.Keys) - { - byte[] buff = info.needAck[key]; - packetEnd = buff.Length - 1; - - try - { - packet = PacketPool.Instance.GetPacket(buff, ref packetEnd, zero); - } - catch (Exception) - { - } - - LLQueItem item = new LLQueItem(); - item.Packet = packet; - item.Incoming = false; - item.throttleType = 0; - item.TickCount = Environment.TickCount; - item.Identifier = 0; - item.Resends = 0; - item.Length = packet.Length; - item.Sequence = packet.Header.Sequence; - m_NeedAck.Add(key, item); - } + // foreach (uint key in info.needAck.Keys) + // { + // byte[] buff = info.needAck[key]; + // packetEnd = buff.Length - 1; + + // try + // { + // packet = PacketPool.Instance.GetPacket(buff, ref packetEnd, zero); + // } + // catch (Exception) + // { + // } + + // LLQueItem item = new LLQueItem(); + // item.Packet = packet; + // item.Incoming = false; + // item.throttleType = 0; + // item.TickCount = Environment.TickCount; + // item.Identifier = 0; + // item.Resends = 0; + // item.Length = packet.Length; + // item.Sequence = packet.Header.Sequence; + // m_NeedAck.Add(key, item); + // } m_Sequence = info.sequence; -- cgit v1.1