* 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 purposes0.6.0-stable
parent
571b94f537
commit
892e7bf9fb
|
@ -41,9 +41,8 @@ namespace OpenSim.Region.ClientStack
|
|||
public ThrottleSettings TotalThrottleSettings;
|
||||
|
||||
/// <summary>
|
||||
/// A multiplier applied to all client throttle settings. This is hopefully a temporary setting to iron out
|
||||
/// bugs that appear if the existing incorrect * 8 throttle (bytes instead of bits) is corrected.
|
||||
/// A multiplier applied to all client throttle settings. Default value is x2 (temporarily)
|
||||
/// </summary>
|
||||
public float ClientThrottleMultipler;
|
||||
public float ClientThrottleMultipler = 2;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue