diff options
author | Dr Scofield | 2009-06-25 07:59:58 +0000 |
---|---|---|
committer | Dr Scofield | 2009-06-25 07:59:58 +0000 |
commit | b84834c45b201c1a7a40ed134fe6796fe8233872 (patch) | |
tree | 6acc8372527361faa6ea73a265234c48d48b992b /OpenSim/Region/ClientStack/LindenUDP | |
parent | changing DropSend()'s foreach loop so that it does not copy the (diff) | |
download | opensim-SC_OLD-b84834c45b201c1a7a40ed134fe6796fe8233872.zip opensim-SC_OLD-b84834c45b201c1a7a40ed134fe6796fe8233872.tar.gz opensim-SC_OLD-b84834c45b201c1a7a40ed134fe6796fe8233872.tar.bz2 opensim-SC_OLD-b84834c45b201c1a7a40ed134fe6796fe8233872.tar.xz |
commenting out expensive bits (who in the world even uses SetClientInfo()?)
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs | 58 |
1 files changed, 29 insertions, 29 deletions
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 | |||
679 | 679 | ||
680 | public void SetClientInfo(ClientInfo info) | 680 | public void SetClientInfo(ClientInfo info) |
681 | { | 681 | { |
682 | m_PendingAcks = info.pendingAcks; | 682 | // m_PendingAcks = info.pendingAcks; |
683 | m_NeedAck = new Dictionary<uint, LLQueItem>(); | 683 | // m_NeedAck = new Dictionary<uint, LLQueItem>(); |
684 | 684 | ||
685 | Packet packet = null; | 685 | // Packet packet = null; |
686 | int packetEnd = 0; | 686 | // int packetEnd = 0; |
687 | byte[] zero = new byte[3000]; | 687 | // byte[] zero = new byte[3000]; |
688 | 688 | ||
689 | foreach (uint key in info.needAck.Keys) | 689 | // foreach (uint key in info.needAck.Keys) |
690 | { | 690 | // { |
691 | byte[] buff = info.needAck[key]; | 691 | // byte[] buff = info.needAck[key]; |
692 | packetEnd = buff.Length - 1; | 692 | // packetEnd = buff.Length - 1; |
693 | 693 | ||
694 | try | 694 | // try |
695 | { | 695 | // { |
696 | packet = PacketPool.Instance.GetPacket(buff, ref packetEnd, zero); | 696 | // packet = PacketPool.Instance.GetPacket(buff, ref packetEnd, zero); |
697 | } | 697 | // } |
698 | catch (Exception) | 698 | // catch (Exception) |
699 | { | 699 | // { |
700 | } | 700 | // } |
701 | 701 | ||
702 | LLQueItem item = new LLQueItem(); | 702 | // LLQueItem item = new LLQueItem(); |
703 | item.Packet = packet; | 703 | // item.Packet = packet; |
704 | item.Incoming = false; | 704 | // item.Incoming = false; |
705 | item.throttleType = 0; | 705 | // item.throttleType = 0; |
706 | item.TickCount = Environment.TickCount; | 706 | // item.TickCount = Environment.TickCount; |
707 | item.Identifier = 0; | 707 | // item.Identifier = 0; |
708 | item.Resends = 0; | 708 | // item.Resends = 0; |
709 | item.Length = packet.Length; | 709 | // item.Length = packet.Length; |
710 | item.Sequence = packet.Header.Sequence; | 710 | // item.Sequence = packet.Header.Sequence; |
711 | m_NeedAck.Add(key, item); | 711 | // m_NeedAck.Add(key, item); |
712 | } | 712 | // } |
713 | 713 | ||
714 | m_Sequence = info.sequence; | 714 | m_Sequence = info.sequence; |
715 | 715 | ||