You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
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:
Presence handler doesn't early return if from token == current token
Current token is based off the ID gen, which may not return the latest ID persisted (as ID gens don't return tokens unless all previous IDs have successfully been persisted)
The stream change cache will return all results after the given token, including rows with a token greater than the current token.
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.
Activity
Fix sync tightloop bug.