Skip to content

Conversation

@maukkis
Copy link
Contributor

@maukkis maukkis commented Dec 11, 2025

This pr fixes the inconsistency with defining jitter as in the info box it was defined to be between 0 and heartbeat_interval

@maukkis maukkis requested a review from a team as a code owner December 11, 2025 12:38
@maukkis maukkis requested review from anthonydiscord and removed request for a team December 11, 2025 12:38

:::info
In the first heartbeat, `jitter` is an offset value between 0 and `heartbeat_interval` that is meant to prevent too many clients (both desktop and apps) from reconnecting their sessions at the exact same time (which could cause an influx of traffic).
In the first heartbeat, `jitter` is an offset value between 0 and 1 that is meant to prevent too many clients (both desktop and apps) from reconnecting their sessions at the exact same time (which could cause an influx of traffic).
Copy link
Contributor

@Qjuh Qjuh Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But that isn't an offset then. The offset value is heartbeat_interval * jitter.

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.

2 participants