aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs
diff options
context:
space:
mode:
authorUbitUmarov2015-09-22 18:56:03 +0100
committerUbitUmarov2015-09-22 18:56:03 +0100
commitae70f61a645583ff6e6dca0dedb255684544664c (patch)
tree91a0fca444de07f985da90ee4eb31b6846e660a8 /OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs
parent removed a protocol breaking lludp debug option that no one should try, chang... (diff)
downloadopensim-SC_OLD-ae70f61a645583ff6e6dca0dedb255684544664c.zip
opensim-SC_OLD-ae70f61a645583ff6e6dca0dedb255684544664c.tar.gz
opensim-SC_OLD-ae70f61a645583ff6e6dca0dedb255684544664c.tar.bz2
opensim-SC_OLD-ae70f61a645583ff6e6dca0dedb255684544664c.tar.xz
let minimum wqburst be a bit larger than MTU
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs b/OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs
index fd369c4..f769383 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs
@@ -104,8 +104,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
104 get { return m_burst; } 104 get { return m_burst; }
105 set { 105 set {
106 float rate = (value < 0 ? 0 : value); 106 float rate = (value < 0 ? 0 : value);
107 if (rate < m_minimumDripRate) 107 if (rate < 1.5f * m_minimumDripRate)
108 rate = m_minimumDripRate; 108 rate = 1.5f * m_minimumDripRate;
109 else if (rate > m_minimumDripRate * m_quantumsPerBurst) 109 else if (rate > m_minimumDripRate * m_quantumsPerBurst)
110 rate = m_minimumDripRate * m_quantumsPerBurst; 110 rate = m_minimumDripRate * m_quantumsPerBurst;
111 111