Turn on logging of old acks, this is for debugging only, stats version coming later

mb-throttle-test
Mic Bowman 2014-12-30 10:50:34 -08:00
parent c06100c31f
commit 58229a968b
1 changed files with 12 additions and 1 deletions

View File

@ -31,6 +31,9 @@ using System.Net;
using System.Threading;
using OpenMetaverse;
using System.Reflection;
using log4net;
namespace OpenSim.Region.ClientStack.LindenUDP
{
/// <summary>
@ -60,6 +63,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
}
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
/// <summary>Holds the actual unacked packet data, sorted by sequence number</summary>
private Dictionary<uint, OutgoingPacket> m_packets = new Dictionary<uint, OutgoingPacket>();
/// <summary>Holds packets that need to be added to the unacknowledged list</summary>
@ -207,9 +212,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
else
{
//m_log.WarnFormat("[UNACKED PACKET COLLECTION]: Could not find packet with sequence number {0} to ack", pendingAcknowledgement.SequenceNumber);
m_log.WarnFormat("[UNACKED PACKET COLLECTION]: found null packet for sequence number {0} to ack",
pendingAcknowledgement.SequenceNumber);
}
}
else
{
m_log.WarnFormat("[UNACKED PACKET COLLECTION]: Could not find packet with sequence number {0} to ack",
pendingAcknowledgement.SequenceNumber);
}
}
uint pendingRemove;