commenting out expensive bits (who in the world even uses SetClientInfo()?)
parent
e8e0ce5fc6
commit
b84834c45b
|
@ -679,37 +679,37 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
public void SetClientInfo(ClientInfo info)
|
public void SetClientInfo(ClientInfo info)
|
||||||
{
|
{
|
||||||
m_PendingAcks = info.pendingAcks;
|
// m_PendingAcks = info.pendingAcks;
|
||||||
m_NeedAck = new Dictionary<uint, LLQueItem>();
|
// m_NeedAck = new Dictionary<uint, LLQueItem>();
|
||||||
|
|
||||||
Packet packet = null;
|
// Packet packet = null;
|
||||||
int packetEnd = 0;
|
// int packetEnd = 0;
|
||||||
byte[] zero = new byte[3000];
|
// byte[] zero = new byte[3000];
|
||||||
|
|
||||||
foreach (uint key in info.needAck.Keys)
|
// foreach (uint key in info.needAck.Keys)
|
||||||
{
|
// {
|
||||||
byte[] buff = info.needAck[key];
|
// byte[] buff = info.needAck[key];
|
||||||
packetEnd = buff.Length - 1;
|
// packetEnd = buff.Length - 1;
|
||||||
|
|
||||||
try
|
// try
|
||||||
{
|
// {
|
||||||
packet = PacketPool.Instance.GetPacket(buff, ref packetEnd, zero);
|
// packet = PacketPool.Instance.GetPacket(buff, ref packetEnd, zero);
|
||||||
}
|
// }
|
||||||
catch (Exception)
|
// catch (Exception)
|
||||||
{
|
// {
|
||||||
}
|
// }
|
||||||
|
|
||||||
LLQueItem item = new LLQueItem();
|
// LLQueItem item = new LLQueItem();
|
||||||
item.Packet = packet;
|
// item.Packet = packet;
|
||||||
item.Incoming = false;
|
// item.Incoming = false;
|
||||||
item.throttleType = 0;
|
// item.throttleType = 0;
|
||||||
item.TickCount = Environment.TickCount;
|
// item.TickCount = Environment.TickCount;
|
||||||
item.Identifier = 0;
|
// item.Identifier = 0;
|
||||||
item.Resends = 0;
|
// item.Resends = 0;
|
||||||
item.Length = packet.Length;
|
// item.Length = packet.Length;
|
||||||
item.Sequence = packet.Header.Sequence;
|
// item.Sequence = packet.Header.Sequence;
|
||||||
m_NeedAck.Add(key, item);
|
// m_NeedAck.Add(key, item);
|
||||||
}
|
// }
|
||||||
|
|
||||||
m_Sequence = info.sequence;
|
m_Sequence = info.sequence;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue