diff options
author | Justin Clark-Casey (justincc) | 2014-10-10 23:36:50 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-11-25 23:21:38 +0000 |
commit | d33964222aa9e3b2e639469a32d0af4728b0f77d (patch) | |
tree | e92451eeaf3df6d449b1b08155bbb660eb8e78e5 /OpenSim/Framework | |
parent | Use automatic properties for Parent and TotalDripRequest in TokenBucket to ma... (diff) | |
download | opensim-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/Framework')
-rw-r--r-- | OpenSim/Framework/ClientInfo.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Framework/ClientInfo.cs b/OpenSim/Framework/ClientInfo.cs index d68078e..98e4465 100644 --- a/OpenSim/Framework/ClientInfo.cs +++ b/OpenSim/Framework/ClientInfo.cs | |||
@@ -54,6 +54,10 @@ namespace OpenSim.Framework | |||
54 | public int assetThrottle; | 54 | public int assetThrottle; |
55 | public int textureThrottle; | 55 | public int textureThrottle; |
56 | public int totalThrottle; | 56 | public int totalThrottle; |
57 | |||
58 | // Used by adaptive only | ||
59 | public int targetThrottle; | ||
60 | |||
57 | public int maxThrottle; | 61 | public int maxThrottle; |
58 | 62 | ||
59 | public Dictionary<string, int> SyncRequests = new Dictionary<string,int>(); | 63 | public Dictionary<string, int> SyncRequests = new Dictionary<string,int>(); |