aboutsummaryrefslogtreecommitdiff
path: root/src/server/worldserver
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2017-06-27 00:22:33 +0200
committerCarbenium <carbenium@outlook.com>2020-07-16 22:00:30 +0200
commit2c3fc47a96baa8a47130befda647bf29d8eacce1 (patch)
treed2b003d52361193409965d7e914eceed6071efd0 /src/server/worldserver
parent37c3259de8a53f6e790707f4f105dda7a297c28d (diff)
Proper client timeout detection (#19906)
- Properly detect client timeout when logged into a character after a configurable time (default 60s) has passed without the client sending any packets. - Fixes issues with crashed clients leaving characters in the world for a very long time (default 15 minutes), as well as edge case exploits involving intentionally pausing client execution for some amount of time. (cherry picked from commit 7dfd472f8dff6ce067572e2887c2beb56d9ba9de)
Diffstat (limited to 'src/server/worldserver')
-rw-r--r--src/server/worldserver/worldserver.conf.dist9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/server/worldserver/worldserver.conf.dist b/src/server/worldserver/worldserver.conf.dist
index c673c143b42..194d06aeb8f 100644
--- a/src/server/worldserver/worldserver.conf.dist
+++ b/src/server/worldserver/worldserver.conf.dist
@@ -341,6 +341,15 @@ InstanceMapLoadAllGrids = 0
SocketTimeOutTime = 900000
#
+# SocketTimeOutTimeActive
+# Description: Time (in milliseconds) after which an idle connection is dropped while
+# logged into the world.
+# The client sends keepalive packets every 30 seconds. Values <= 30s are not recommended.
+# Default: 60000 - (1 minute)
+
+SocketTimeOutTimeActive = 60000
+
+#
# SessionAddDelay
# Description: Time (in microseconds) that a network thread will sleep after authentication
# protocol handling before adding a connection to the world session map.