Skip to content

Add sync_delay_ms option for preventing back-to-back syncs - #723

Merged
ulyssa merged 2 commits into
mainfrom
ulyssa/sync-delay
Sep 20, 2026
Merged

ulyssa merged 2 commits into
mainfrom
ulyssa/sync-delay

Conversation

@ulyssa

@ulyssa ulyssa commented Sep 20, 2026

Copy link
Copy Markdown
Owner

The /sync endpoint will wait up until the timeout parameter for new events to respond with, and the Matrix SDK defaults to passing 30 seconds (DEFAULT_SYNC_TIMEOUT in the source), but if a user is in enough rooms with enough updates then they will do a continuous stream of syncs with likely small responses. This adds a sync_delay_ms config option to allow users to configure how long after the last sync finished before retrying. This should allow users seeing constant network or disk I/O due to frequent syncing to introduce a delay.

@ulyssa ulyssa added this to the v0.0.13 milestone Sep 20, 2026
@ulyssa
ulyssa marked this pull request as ready for review September 20, 2026 19:09
@ulyssa ulyssa changed the title Add sync_delay option for preventing back-to-back syncs Add sync_delay_ms option for preventing back-to-back syncs Sep 20, 2026
@ulyssa
ulyssa enabled auto-merge (squash) September 20, 2026 19:09
@ulyssa
ulyssa merged commit 4ef6975 into main Sep 20, 2026
6 checks passed
@ulyssa
ulyssa deleted the ulyssa/sync-delay branch September 20, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant