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.
This commit is contained in:
Mic Bowman
2014-12-29 23:19:10 -08:00
parent 041a09ecb9
commit bda8f2a2c1
3 changed files with 7 additions and 7 deletions

View File

@@ -141,7 +141,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
udpServer.Throttle.DebugLevel = 1;
udpClient.ThrottleDebugLevel = 1;
int resendBytes = 1000;
int landBytes = 2000;
int windBytes = 3000;
@@ -208,7 +208,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
textureBytes * commitRatio, assetBytes * commitRatio, udpClient.FlowThrottle.AdjustedDripRate, totalBytes, 0);
// Test an increase in target throttle
udpClient.FlowThrottle.AcknowledgePackets(35000);
udpClient.FlowThrottle.AcknowledgePackets(25);
commitRatio = 0.2;
AssertThrottles(