aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-10-28 00:44:03 +0000
committerJustin Clark-Casey (justincc)2014-11-25 23:22:20 +0000
commit5ab5d7fe476e39452fc80465ea2506b7b9f7773e (patch)
tree5e6e8a9f4f4fd49f66694fc9a7948690653cd4a9 /OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
parentFix setting of max scene throttle so that setting it restricts the child clie... (diff)
downloadopensim-SC-5ab5d7fe476e39452fc80465ea2506b7b9f7773e.zip
opensim-SC-5ab5d7fe476e39452fc80465ea2506b7b9f7773e.tar.gz
opensim-SC-5ab5d7fe476e39452fc80465ea2506b7b9f7773e.tar.bz2
opensim-SC-5ab5d7fe476e39452fc80465ea2506b7b9f7773e.tar.xz
Fix recent regression where adaptive throttles stopped adjusting.
Extends regression tests to test response of adaptive throttles to ack'ed and expired packets.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs34
1 files changed, 16 insertions, 18 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
index c768662..b70d861 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
@@ -447,31 +447,29 @@ namespace OpenSim.Region.ClientStack.LindenUDP
447 long total = resend + land + wind + cloud + task + texture + asset; 447 long total = resend + land + wind + cloud + task + texture + asset;
448 m_throttleClient.TargetDripRate = total; 448 m_throttleClient.TargetDripRate = total;
449 } 449 }
450 else
451 {
452 TokenBucket bucket;
453 450
454 bucket = m_throttleCategories[(int)ThrottleOutPacketType.Resend]; 451 TokenBucket bucket;
455 bucket.RequestedDripRate = resend;
456 452
457 bucket = m_throttleCategories[(int)ThrottleOutPacketType.Land]; 453 bucket = m_throttleCategories[(int)ThrottleOutPacketType.Resend];
458 bucket.RequestedDripRate = land; 454 bucket.RequestedDripRate = resend;
459 455
460 bucket = m_throttleCategories[(int)ThrottleOutPacketType.Wind]; 456 bucket = m_throttleCategories[(int)ThrottleOutPacketType.Land];
461 bucket.RequestedDripRate = wind; 457 bucket.RequestedDripRate = land;
462 458
463 bucket = m_throttleCategories[(int)ThrottleOutPacketType.Cloud]; 459 bucket = m_throttleCategories[(int)ThrottleOutPacketType.Wind];
464 bucket.RequestedDripRate = cloud; 460 bucket.RequestedDripRate = wind;
465 461
466 bucket = m_throttleCategories[(int)ThrottleOutPacketType.Asset]; 462 bucket = m_throttleCategories[(int)ThrottleOutPacketType.Cloud];
467 bucket.RequestedDripRate = asset; 463 bucket.RequestedDripRate = cloud;
468 464
469 bucket = m_throttleCategories[(int)ThrottleOutPacketType.Task]; 465 bucket = m_throttleCategories[(int)ThrottleOutPacketType.Asset];
470 bucket.RequestedDripRate = task; 466 bucket.RequestedDripRate = asset;
471 467
472 bucket = m_throttleCategories[(int)ThrottleOutPacketType.Texture]; 468 bucket = m_throttleCategories[(int)ThrottleOutPacketType.Task];
473 bucket.RequestedDripRate = texture; 469 bucket.RequestedDripRate = task;
474 } 470
471 bucket = m_throttleCategories[(int)ThrottleOutPacketType.Texture];
472 bucket.RequestedDripRate = texture;
475 473
476 // Reset the packed throttles cached data 474 // Reset the packed throttles cached data
477 m_packedThrottles = null; 475 m_packedThrottles = null;