From ce2d71e1d9cebbcba4a89323a4f745ae280ffa27 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Fri, 12 Feb 2010 19:59:44 +0100 Subject: Add config option that determines the maximum allowed time between the last received CMSG_CHAR_ENUM and another incoming packet, and will disconnect the peer if this time limit is exceeded. In other words, a time limit in which idlers can stay logged in on the character selection screen before they are disconnected. Fixes issue #335 --HG-- branch : trunk --- src/game/World.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game/World.cpp') diff --git a/src/game/World.cpp b/src/game/World.cpp index 9b92a4f56fa..f413fc7dfd1 100644 --- a/src/game/World.cpp +++ b/src/game/World.cpp @@ -648,6 +648,7 @@ void World::LoadConfigSettings(bool reload) else m_configs[CONFIG_SOCKET_SELECTTIME] = sConfig.GetIntDefault("SocketSelectTime", DEFAULT_SOCKET_SELECT_TIME); + m_configs[CONFIG_SOCKET_TIMEOUTTIME] = sConfig.GetIntDefault("SocketTimeOutTime", 900000); m_configs[CONFIG_GROUP_XP_DISTANCE] = sConfig.GetIntDefault("MaxGroupXPDistance", 74); /// \todo Add MonsterSight and GuarderSight (with meaning) in Trinityd.conf or put them as define m_configs[CONFIG_SIGHT_MONSTER] = sConfig.GetIntDefault("MonsterSight", 50); -- cgit v1.2.3