diff options
author | Justin Clarke Casey | 2008-11-03 19:02:44 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-11-03 19:02:44 +0000 |
commit | 8dbd0118a84fa065b675bedae3be802618cd1e9e (patch) | |
tree | e2c433f62a0080082455da726a7f1b5e7c18f102 /OpenSim/Region/ClientStack/LindenUDP | |
parent | * minor: don't need to null check config source in clientstack settings since... (diff) | |
download | opensim-SC-8dbd0118a84fa065b675bedae3be802618cd1e9e.zip opensim-SC-8dbd0118a84fa065b675bedae3be802618cd1e9e.tar.gz opensim-SC-8dbd0118a84fa065b675bedae3be802618cd1e9e.tar.bz2 opensim-SC-8dbd0118a84fa065b675bedae3be802618cd1e9e.tar.xz |
* Pull client throttle multipler setting out of config source. Not an adjustable setting yet (and then only for debug purposes)
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index 960989d..72072c2 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | |||
@@ -148,8 +148,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
148 | IPAddress _listenIP, ref uint port, int proxyPortOffsetParm, bool allow_alternate_port, IConfigSource configSource, | 148 | IPAddress _listenIP, ref uint port, int proxyPortOffsetParm, bool allow_alternate_port, IConfigSource configSource, |
149 | AssetCache assetCache, AgentCircuitManager circuitManager) | 149 | AssetCache assetCache, AgentCircuitManager circuitManager) |
150 | { | 150 | { |
151 | // XXX Temporary until we start unpacking the config source | ||
152 | ClientStackUserSettings userSettings = new ClientStackUserSettings(); | 151 | ClientStackUserSettings userSettings = new ClientStackUserSettings(); |
152 | userSettings.ClientThrottleMultipler = 8; | ||
153 | |||
154 | IConfig config = configSource.Configs["ClientStack.LindenUDP"]; | ||
155 | |||
156 | if (config != null) | ||
157 | { | ||
158 | userSettings.ClientThrottleMultipler = config.GetInt("client_throttle_multiplier"); | ||
159 | } | ||
160 | |||
161 | //m_log.DebugFormat("[CLIENT]: client_throttle_multiplier = {0}", userSettings.ClientThrottleMultipler); | ||
153 | 162 | ||
154 | proxyPortOffset = proxyPortOffsetParm; | 163 | proxyPortOffset = proxyPortOffsetParm; |
155 | listenPort = (uint) (port + proxyPortOffsetParm); | 164 | listenPort = (uint) (port + proxyPortOffsetParm); |