mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Massive tab and trailing space cleanup
This commit is contained in:
@@ -80,7 +80,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
m_packets.Clear();
|
||||
m_pendingAdds = null;
|
||||
m_pendingAcknowledgements = null;
|
||||
m_pendingRemoves = null;
|
||||
m_pendingRemoves = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -94,7 +94,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
public void Add(OutgoingPacket packet)
|
||||
{
|
||||
m_pendingAdds.Enqueue(packet);
|
||||
Interlocked.Add(ref packet.Client.UnackedBytes, packet.Buffer.DataLength);
|
||||
Interlocked.Add(ref packet.Client.UnackedBytes, packet.Buffer.DataLength);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -116,7 +116,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
/// <summary>
|
||||
/// Marks a packet as no longer needing acknowledgement without a received acknowledgement.
|
||||
/// This method is called when a packet expires and we no longer need an acknowledgement.
|
||||
/// When some reliable packet types expire, they are handled in a way other than simply
|
||||
/// When some reliable packet types expire, they are handled in a way other than simply
|
||||
/// resending them. The only effect of removal this way is to update unacked byte count.
|
||||
/// </summary>
|
||||
/// <param name="sequenceNumber">Sequence number of the packet to
|
||||
@@ -155,7 +155,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
foreach (OutgoingPacket packet in m_packets.Values)
|
||||
{
|
||||
// TickCount of zero means a packet is in the resend queue
|
||||
// TickCount of zero means a packet is in the resend queue
|
||||
// but hasn't actually been sent over the wire yet
|
||||
if (packet.TickCount == 0)
|
||||
continue;
|
||||
@@ -172,7 +172,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
// As with other network applications, assume that an expired packet is
|
||||
// an indication of some network problem, slow transmission
|
||||
packet.Client.FlowThrottle.ExpirePackets(1);
|
||||
|
||||
|
||||
expiredPackets.Add(packet);
|
||||
}
|
||||
}
|
||||
@@ -191,7 +191,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
while (m_pendingAdds.TryDequeue(out pendingAdd))
|
||||
if (pendingAdd != null)
|
||||
m_packets[pendingAdd.SequenceNumber] = pendingAdd;
|
||||
|
||||
|
||||
// Process all the pending removes, including updating statistics and round-trip times
|
||||
PendingAck pendingAcknowledgement;
|
||||
while (m_pendingAcknowledgements.TryDequeue(out pendingAcknowledgement))
|
||||
@@ -228,7 +228,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
else
|
||||
{
|
||||
// m_log.WarnFormat("[UNACKED PACKET COLLECTION]: Could not find packet with sequence number {0} to ack",
|
||||
// pendingAcknowledgement.SequenceNumber);
|
||||
// pendingAcknowledgement.SequenceNumber);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user