mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
* Pull client throttle multipler setting out of config source. Not an adjustable setting yet (and then only for debug purposes)
This commit is contained in:
@@ -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.
|
||||
/// </summary>
|
||||
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,
|
||||
AssetCache assetCache, AgentCircuitManager circuitManager)
|
||||
{
|
||||
// XXX Temporary until we start unpacking the config source
|
||||
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;
|
||||
listenPort = (uint) (port + proxyPortOffsetParm);
|
||||
|
||||
Reference in New Issue
Block a user