This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Sync tightloop due to presence #5503
Labels
A-Performance
Performance, both client-facing and admin-facing
Occasionally my
/sync
will tightloop, i.e. it will return immediately with a presence update, but the since token matches the next token, and so it makes no progress.This seems to be due to:
The simplest solution here is probably to just early return if
from token == current token
. This is safe as once the persistence of pending presence updates have completed current token will increment.The text was updated successfully, but these errors were encountered: