From 7dfd472f8dff6ce067572e2887c2beb56d9ba9de Mon Sep 17 00:00:00 2001 From: Treeston Date: Tue, 27 Jun 2017 00:22:33 +0200 Subject: 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. --- src/server/worldserver/worldserver.conf.dist | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/server/worldserver') 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 @@ -304,6 +304,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 -- cgit v1.2.3