diff options
author | Mic Bowman | 2014-12-29 23:19:10 -0800 |
---|---|---|
committer | Mic Bowman | 2014-12-29 23:19:10 -0800 |
commit | bda8f2a2c1d702adc9e61869195a4dbcd3c6751f (patch) | |
tree | c75af4bc8f664bebebfa0aaccca178a74b728f39 /OpenSim/Region/ClientStack/Linden/UDP/Tests/ThrottleTests.cs | |
parent | Enable runtime configuration of the minimum rate for adaptive (diff) | |
download | opensim-SC-bda8f2a2c1d702adc9e61869195a4dbcd3c6751f.zip opensim-SC-bda8f2a2c1d702adc9e61869195a4dbcd3c6751f.tar.gz opensim-SC-bda8f2a2c1d702adc9e61869195a4dbcd3c6751f.tar.bz2 opensim-SC-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/Tests/ThrottleTests.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/Tests/ThrottleTests.cs b/OpenSim/Region/ClientStack/Linden/UDP/Tests/ThrottleTests.cs index 0560b9b..17e1af6 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/Tests/ThrottleTests.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/Tests/ThrottleTests.cs | |||
@@ -141,7 +141,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests | |||
141 | 141 | ||
142 | udpServer.Throttle.DebugLevel = 1; | 142 | udpServer.Throttle.DebugLevel = 1; |
143 | udpClient.ThrottleDebugLevel = 1; | 143 | udpClient.ThrottleDebugLevel = 1; |
144 | 144 | ||
145 | int resendBytes = 1000; | 145 | int resendBytes = 1000; |
146 | int landBytes = 2000; | 146 | int landBytes = 2000; |
147 | int windBytes = 3000; | 147 | int windBytes = 3000; |
@@ -208,7 +208,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests | |||
208 | textureBytes * commitRatio, assetBytes * commitRatio, udpClient.FlowThrottle.AdjustedDripRate, totalBytes, 0); | 208 | textureBytes * commitRatio, assetBytes * commitRatio, udpClient.FlowThrottle.AdjustedDripRate, totalBytes, 0); |
209 | 209 | ||
210 | // Test an increase in target throttle | 210 | // Test an increase in target throttle |
211 | udpClient.FlowThrottle.AcknowledgePackets(35000); | 211 | udpClient.FlowThrottle.AcknowledgePackets(25); |
212 | commitRatio = 0.2; | 212 | commitRatio = 0.2; |
213 | 213 | ||
214 | AssertThrottles( | 214 | AssertThrottles( |