* Pull client throttle multipler setting out of config source. Not an adjustable setting yet (and then only for debug purposes)
parent
6ea24799dd
commit
8dbd0118a8
|
@ -39,5 +39,11 @@ namespace OpenSim.Region.ClientStack
|
||||||
/// The settings for the throttle that governs how many packets in total are sent to the client.
|
/// The settings for the throttle that governs how many packets in total are sent to the client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ThrottleSettings TotalThrottleSettings;
|
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.
|
||||||
|
/// </summary>
|
||||||
|
public int ClientThrottleMultipler;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,8 +148,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
IPAddress _listenIP, ref uint port, int proxyPortOffsetParm, bool allow_alternate_port, IConfigSource configSource,
|
IPAddress _listenIP, ref uint port, int proxyPortOffsetParm, bool allow_alternate_port, IConfigSource configSource,
|
||||||
AssetCache assetCache, AgentCircuitManager circuitManager)
|
AssetCache assetCache, AgentCircuitManager circuitManager)
|
||||||
{
|
{
|
||||||
// XXX Temporary until we start unpacking the config source
|
|
||||||
ClientStackUserSettings userSettings = new ClientStackUserSettings();
|
ClientStackUserSettings userSettings = new ClientStackUserSettings();
|
||||||
|
userSettings.ClientThrottleMultipler = 8;
|
||||||
|
|
||||||
|
IConfig config = configSource.Configs["ClientStack.LindenUDP"];
|
||||||
|
|
||||||
|
if (config != null)
|
||||||
|
{
|
||||||
|
userSettings.ClientThrottleMultipler = config.GetInt("client_throttle_multiplier");
|
||||||
|
}
|
||||||
|
|
||||||
|
//m_log.DebugFormat("[CLIENT]: client_throttle_multiplier = {0}", userSettings.ClientThrottleMultipler);
|
||||||
|
|
||||||
proxyPortOffset = proxyPortOffsetParm;
|
proxyPortOffset = proxyPortOffsetParm;
|
||||||
listenPort = (uint) (port + proxyPortOffsetParm);
|
listenPort = (uint) (port + proxyPortOffsetParm);
|
||||||
|
|
Loading…
Reference in New Issue