diff options
author | Justin Clark-Casey (justincc) | 2011-10-12 19:35:40 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-10-12 19:35:40 +0100 |
commit | c5826d589ab2f33a71105bc2d3015ffbb7dd2973 (patch) | |
tree | 1b4c50e7f68cff2424d89cf4f2f5b968a0618c64 /OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-c5826d589ab2f33a71105bc2d3015ffbb7dd2973.zip opensim-SC-c5826d589ab2f33a71105bc2d3015ffbb7dd2973.tar.gz opensim-SC-c5826d589ab2f33a71105bc2d3015ffbb7dd2973.tar.bz2 opensim-SC-c5826d589ab2f33a71105bc2d3015ffbb7dd2973.tar.xz |
minor: insert some commented out log lines which are a blunt but useful instrument to see packet expiry and received acks
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs b/OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs index 6b1d7d2..9d6c09e 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs | |||
@@ -164,6 +164,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
164 | } | 164 | } |
165 | } | 165 | } |
166 | 166 | ||
167 | //if (expiredPackets != null) | ||
168 | // m_log.DebugFormat("[UNACKED PACKET COLLECTION]: Found {0} expired packets on timeout of {1}", expiredPackets.Count, timeoutMS); | ||
169 | |||
167 | return expiredPackets; | 170 | return expiredPackets; |
168 | } | 171 | } |
169 | 172 | ||
@@ -179,6 +182,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
179 | PendingAck pendingAcknowledgement; | 182 | PendingAck pendingAcknowledgement; |
180 | while (m_pendingAcknowledgements.TryDequeue(out pendingAcknowledgement)) | 183 | while (m_pendingAcknowledgements.TryDequeue(out pendingAcknowledgement)) |
181 | { | 184 | { |
185 | //m_log.DebugFormat("[UNACKED PACKET COLLECTION]: Processing ack {0}", pendingAcknowledgement.SequenceNumber); | ||
182 | OutgoingPacket ackedPacket; | 186 | OutgoingPacket ackedPacket; |
183 | if (m_packets.TryGetValue(pendingAcknowledgement.SequenceNumber, out ackedPacket)) | 187 | if (m_packets.TryGetValue(pendingAcknowledgement.SequenceNumber, out ackedPacket)) |
184 | { | 188 | { |
@@ -201,6 +205,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
201 | ackedPacket.Client.UpdateRoundTrip(rtt); | 205 | ackedPacket.Client.UpdateRoundTrip(rtt); |
202 | } | 206 | } |
203 | } | 207 | } |
208 | else | ||
209 | { | ||
210 | //m_log.WarnFormat("[UNACKED PACKET COLLECTION]: Could not find packet with sequence number {0} to ack", pendingAcknowledgement.SequenceNumber); | ||
211 | } | ||
204 | } | 212 | } |
205 | } | 213 | } |
206 | 214 | ||