Skip to content

Commit

Permalink
Change presence timers to 10 minutes
Browse files Browse the repository at this point in the history
Increase IDLE_TIMER to match LAST_ACTIVE_GRANULARITY

Increase presence timers even futher
  • Loading branch information
PiotrKozimor committed Mar 17, 2022
1 parent 58951e0 commit 8e8edce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/handlers/presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e8edce

Please sign in to comment.