aboutsummaryrefslogtreecommitdiff
path: root/src/server/worldserver
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2017-06-27 00:22:33 +0200
committerGitHub <noreply@github.com>2017-06-27 00:22:33 +0200
commit7dfd472f8dff6ce067572e2887c2beb56d9ba9de (patch)
treedb9a92f5e30f5f6783a8c5a43d56f5953070a35d /src/server/worldserver
parent19fefbb72b0a4a413e86d57a13fb0fd040c2a78a (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.
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 83dd87a487e..ba8a10c759d 100644
--- a/src/server/worldserver/worldserver.conf.dist
+++ b/src/server/worldserver/worldserver.conf.dist
@@ -305,6 +305,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.