mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* 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
This commit is contained in:
@@ -149,16 +149,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
AssetCache assetCache, AgentCircuitManager circuitManager)
|
||||
{
|
||||
ClientStackUserSettings userSettings = new ClientStackUserSettings();
|
||||
userSettings.ClientThrottleMultipler = 2; // default. TODO: Should be a constant somewhere
|
||||
|
||||
IConfig config = configSource.Configs["ClientStack.LindenUDP"];
|
||||
|
||||
if (config != null)
|
||||
{
|
||||
userSettings.ClientThrottleMultipler = config.GetFloat("client_throttle_multiplier");
|
||||
if (config.Contains("client_throttle_multiplier"))
|
||||
userSettings.ClientThrottleMultipler = config.GetFloat("client_throttle_multiplier");
|
||||
}
|
||||
|
||||
//m_log.DebugFormat("[CLIENT]: client_throttle_multiplier = {0}", userSettings.ClientThrottleMultipler);
|
||||
m_log.DebugFormat("[CLIENT]: client_throttle_multiplier = {0}", userSettings.ClientThrottleMultipler);
|
||||
|
||||
proxyPortOffset = proxyPortOffsetParm;
|
||||
listenPort = (uint) (port + proxyPortOffsetParm);
|
||||
|
||||
Reference in New Issue
Block a user