diff options
author | Justin Clarke Casey | 2008-11-05 20:42:37 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-11-05 20:42:37 +0000 |
commit | 892e7bf9fb57a313c71fbd687f44027bf90bbdda (patch) | |
tree | 814e3d9c22b7209b6d7b2b37ca59eeba4a15a532 /OpenSim/Region/ClientStack/LindenUDP | |
parent | moved the initial loading/setting of the config settings to its own class, Co... (diff) | |
download | opensim-SC_OLD-892e7bf9fb57a313c71fbd687f44027bf90bbdda.zip opensim-SC_OLD-892e7bf9fb57a313c71fbd687f44027bf90bbdda.tar.gz opensim-SC_OLD-892e7bf9fb57a313c71fbd687f44027bf90bbdda.tar.bz2 opensim-SC_OLD-892e7bf9fb57a313c71fbd687f44027bf90bbdda.tar.xz |
* Properly use the default value if the LindenUDP.ClientStack section exists by the client throttle setting does not
* Old behaviour was to throw an exception on startup
* Print out client stack setting temporarly for debug purposes
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index f777e0e..65e8b5f 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | |||
@@ -149,16 +149,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
149 | AssetCache assetCache, AgentCircuitManager circuitManager) | 149 | AssetCache assetCache, AgentCircuitManager circuitManager) |
150 | { | 150 | { |
151 | ClientStackUserSettings userSettings = new ClientStackUserSettings(); | 151 | ClientStackUserSettings userSettings = new ClientStackUserSettings(); |
152 | userSettings.ClientThrottleMultipler = 2; // default. TODO: Should be a constant somewhere | ||
153 | 152 | ||
154 | IConfig config = configSource.Configs["ClientStack.LindenUDP"]; | 153 | IConfig config = configSource.Configs["ClientStack.LindenUDP"]; |
155 | 154 | ||
156 | if (config != null) | 155 | if (config != null) |
157 | { | 156 | { |
158 | userSettings.ClientThrottleMultipler = config.GetFloat("client_throttle_multiplier"); | 157 | if (config.Contains("client_throttle_multiplier")) |
158 | userSettings.ClientThrottleMultipler = config.GetFloat("client_throttle_multiplier"); | ||
159 | } | 159 | } |
160 | 160 | ||
161 | //m_log.DebugFormat("[CLIENT]: client_throttle_multiplier = {0}", userSettings.ClientThrottleMultipler); | 161 | m_log.DebugFormat("[CLIENT]: client_throttle_multiplier = {0}", userSettings.ClientThrottleMultipler); |
162 | 162 | ||
163 | proxyPortOffset = proxyPortOffsetParm; | 163 | proxyPortOffset = proxyPortOffsetParm; |
164 | listenPort = (uint) (port + proxyPortOffsetParm); | 164 | listenPort = (uint) (port + proxyPortOffsetParm); |