aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-10-10 23:36:50 +0100
committerJustin Clark-Casey (justincc)2014-11-25 23:21:38 +0000
commitd33964222aa9e3b2e639469a32d0af4728b0f77d (patch)
treee92451eeaf3df6d449b1b08155bbb660eb8e78e5 /OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs
parentUse automatic properties for Parent and TotalDripRequest in TokenBucket to ma... (diff)
downloadopensim-SC_OLD-d33964222aa9e3b2e639469a32d0af4728b0f77d.zip
opensim-SC_OLD-d33964222aa9e3b2e639469a32d0af4728b0f77d.tar.gz
opensim-SC_OLD-d33964222aa9e3b2e639469a32d0af4728b0f77d.tar.bz2
opensim-SC_OLD-d33964222aa9e3b2e639469a32d0af4728b0f77d.tar.xz
Fix an issue where specifying both max client and server outgoing UDP throttles would cause client throttles to be lower than expected when total requests exceeded the scene limit.
This was because specifying a max client throttle would always request the max from the parent server throttle, no matter the actual total requests on the client throttle. This would lead to a lower server multiplier than expected. This change also adds a 'target' column to the "show throttles" output that shows the target rate (as set by client) if adaptive throttles is active. This commit also re-adds the functionality lost in recent 5c1a1458 to set a max client throttle when adaptive is active. This commit also adds TestClientThrottlePerClientAndRegionLimited and TestClientThrottleAdaptiveNoLimit regression tests
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs
index 52247ab..325b04a 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs
@@ -182,7 +182,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
182 ConsoleDisplayList cdl = new ConsoleDisplayList(); 182 ConsoleDisplayList cdl = new ConsoleDisplayList();
183 cdl.AddRow("Adaptive throttles", m_udpServer.ThrottleRates.AdaptiveThrottlesEnabled); 183 cdl.AddRow("Adaptive throttles", m_udpServer.ThrottleRates.AdaptiveThrottlesEnabled);
184 184
185 long maxSceneDripRate = m_udpServer.MaxTotalDripRate; 185 long maxSceneDripRate = m_udpServer.Throttle.MaxDripRate;
186 cdl.AddRow( 186 cdl.AddRow(
187 "Max scene throttle", 187 "Max scene throttle",
188 maxSceneDripRate != 0 ? string.Format("{0} kbps", maxSceneDripRate * 8 / 1000) : "unset"); 188 maxSceneDripRate != 0 ? string.Format("{0} kbps", maxSceneDripRate * 8 / 1000) : "unset");
@@ -360,7 +360,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
360 param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); 360 param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name);
361 361
362 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; 362 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient;
363 udpClient.FlowThrottle.Enabled = newValue; 363 udpClient.FlowThrottle.AdaptiveEnabled = newValue;
364 // udpClient.FlowThrottle.MaxDripRate = 0; 364 // udpClient.FlowThrottle.MaxDripRate = 0;
365 // udpClient.FlowThrottle.AdjustedDripRate = 0; 365 // udpClient.FlowThrottle.AdjustedDripRate = 0;
366 } 366 }
@@ -426,7 +426,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
426 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; 426 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient;
427 427
428 ConsoleDisplayList cdl = new ConsoleDisplayList(); 428 ConsoleDisplayList cdl = new ConsoleDisplayList();
429 cdl.AddRow("Adaptive throttle", udpClient.FlowThrottle.Enabled); 429 cdl.AddRow("Adaptive throttle", udpClient.FlowThrottle.AdaptiveEnabled);
430 cdl.AddRow("Max throttle", string.Format("{0} kbps", udpClient.FlowThrottle.RequestedDripRate * 8 / 1000)); 430 cdl.AddRow("Max throttle", string.Format("{0} kbps", udpClient.FlowThrottle.RequestedDripRate * 8 / 1000));
431 431
432 m_console.Output(cdl.ToString()); 432 m_console.Output(cdl.ToString());