aboutsummaryrefslogtreecommitdiff
path: root/src/game/World.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-02-12 19:59:44 +0100
committerMachiavelli <none@none>2010-02-12 19:59:44 +0100
commitce2d71e1d9cebbcba4a89323a4f745ae280ffa27 (patch)
tree711387990d8373f273a99f05b5b07e0c8bfc9192 /src/game/World.cpp
parentab146caaa86e5d0f89bdbcf967f3d620b5aa3c25 (diff)
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
Diffstat (limited to 'src/game/World.cpp')
-rw-r--r--src/game/World.cpp1
1 files changed, 1 insertions, 0 deletions
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);