From 8dbd0118a84fa065b675bedae3be802618cd1e9e Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 3 Nov 2008 19:02:44 +0000 Subject: * Pull client throttle multipler setting out of config source. Not an adjustable setting yet (and then only for debug purposes) --- OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index 960989d..72072c2 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs @@ -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); -- cgit v1.1