From 2c3fc47a96baa8a47130befda647bf29d8eacce1 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. (cherry picked from commit 7dfd472f8dff6ce067572e2887c2beb56d9ba9de) --- 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 c673c143b42..194d06aeb8f 100644 --- a/src/server/worldserver/worldserver.conf.dist +++ b/src/server/worldserver/worldserver.conf.dist @@ -340,6 +340,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