From 8e8edce13b90d16c110154357c37af252cc44f93 Mon Sep 17 00:00:00 2001 From: Piotr Kozimor Date: Fri, 21 Jan 2022 15:48:53 +0100 Subject: [PATCH] Change presence timers to 10 minutes Increase IDLE_TIMER to match LAST_ACTIVE_GRANULARITY Increase presence timers even futher --- synapse/handlers/presence.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index c155098beeb8..1c5934adfd2a 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py @@ -101,14 +101,14 @@ # If a user was last active in the last LAST_ACTIVE_GRANULARITY, consider them # "currently_active" -LAST_ACTIVE_GRANULARITY = 60 * 1000 +LAST_ACTIVE_GRANULARITY = 10 * 60 * 1000 # How long to wait until a new /events or /sync request before assuming # the client has gone. SYNC_ONLINE_TIMEOUT = 30 * 1000 # How long to wait before marking the user as idle. Compared against last active -IDLE_TIMER = 5 * 60 * 1000 +IDLE_TIMER = 12 * 60 * 1000 # How often we expect remote servers to resend us presence. FEDERATION_TIMEOUT = 30 * 60 * 1000