From ae70f61a645583ff6e6dca0dedb255684544664c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 22 Sep 2015 18:56:03 +0100 Subject: let minimum wqburst be a bit larger than MTU --- OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs') 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 get { return m_burst; } set { float rate = (value < 0 ? 0 : value); - if (rate < m_minimumDripRate) - rate = m_minimumDripRate; + if (rate < 1.5f * m_minimumDripRate) + rate = 1.5f * m_minimumDripRate; else if (rate > m_minimumDripRate * m_quantumsPerBurst) rate = m_minimumDripRate * m_quantumsPerBurst; -- cgit v1.1