aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs
diff options
context:
space:
mode:
authorMic Bowman2014-12-29 23:19:10 -0800
committerMic Bowman2014-12-29 23:19:10 -0800
commitbda8f2a2c1d702adc9e61869195a4dbcd3c6751f (patch)
treec75af4bc8f664bebebfa0aaccca178a74b728f39 /OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs
parentEnable runtime configuration of the minimum rate for adaptive (diff)
downloadopensim-SC_OLD-bda8f2a2c1d702adc9e61869195a4dbcd3c6751f.zip
opensim-SC_OLD-bda8f2a2c1d702adc9e61869195a4dbcd3c6751f.tar.gz
opensim-SC_OLD-bda8f2a2c1d702adc9e61869195a4dbcd3c6751f.tar.bz2
opensim-SC_OLD-bda8f2a2c1d702adc9e61869195a4dbcd3c6751f.tar.xz
Change the effect of successfully acknowledged packets to bump the
adaptive throttle by a full MTU. This is consistent with some implementations of congestion control algorithms and certainly has the effect of opening the throttle window more quickly after errors. This is especially important after initial scene load when the number and size of packets is small.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs b/OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs
index 9d6c09e..adf019f 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/UnackedPacketCollection.cs
@@ -192,7 +192,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
192 192
193 // As with other network applications, assume that an acknowledged packet is an 193 // As with other network applications, assume that an acknowledged packet is an
194 // indication that the network can handle a little more load, speed up the transmission 194 // indication that the network can handle a little more load, speed up the transmission
195 ackedPacket.Client.FlowThrottle.AcknowledgePackets(ackedPacket.Buffer.DataLength); 195 ackedPacket.Client.FlowThrottle.AcknowledgePackets(1);
196 196
197 // Update stats 197 // Update stats
198 Interlocked.Add(ref ackedPacket.Client.UnackedBytes, -ackedPacket.Buffer.DataLength); 198 Interlocked.Add(ref ackedPacket.Client.UnackedBytes, -ackedPacket.Buffer.DataLength);