diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index 1cfde91..384eda7 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | |||
@@ -138,15 +138,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
138 | #endregion Environment.TickCount Measurement | 138 | #endregion Environment.TickCount Measurement |
139 | 139 | ||
140 | m_circuitManager = circuitManager; | 140 | m_circuitManager = circuitManager; |
141 | int sceneThrottleBps = 0; | ||
141 | 142 | ||
142 | IConfig config = configSource.Configs["ClientStack.LindenUDP"]; | 143 | IConfig config = configSource.Configs["ClientStack.LindenUDP"]; |
143 | if (config != null) | 144 | if (config != null) |
144 | { | 145 | { |
145 | m_recvBufferSize = config.GetInt("client_socket_rcvbuf_size", 0); | 146 | m_recvBufferSize = config.GetInt("client_socket_rcvbuf_size", 0); |
147 | sceneThrottleBps = config.GetInt("scene_throttle_max_bps", 0); | ||
146 | } | 148 | } |
147 | 149 | ||
148 | // TODO: Config support for throttling the entire connection | 150 | // TODO: Config support for throttling the entire connection |
149 | m_throttle = new TokenBucket(null, 0, 0); | 151 | m_throttle = new TokenBucket(null, sceneThrottleBps, sceneThrottleBps); |
150 | m_throttleRates = new ThrottleRates(configSource); | 152 | m_throttleRates = new ThrottleRates(configSource); |
151 | } | 153 | } |
152 | 154 | ||