ZIm/crates/client/src
Antonio Scandurra 45af1fcc2f
Always double reconnection delay and add jitter (#35337)
Previously, we would pick an exponent between 0.5 and 2.5, which would
cause a lot of clients to try reconnecting in rapid succession,
overwhelming the server as a result.

This pull request always doubles the previous delay and introduces a
jitter that can, at most, double it.

As part of this, we're also increasing the maximum reconnection delay
from 10s to 30s: this gives us more space to spread out the reconnection
requests.

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>
2025-07-30 15:34:09 +00:00
..
proxy Revert "client: Fix an issue where non-IP proxy URLs didn’t resolve c… (#33013) 2025-06-19 08:56:00 +00:00
telemetry Use Instant not chrono for telemetry (#20756) 2024-11-19 08:23:12 -07:00
client.rs Always double reconnection delay and add jitter (#35337) 2025-07-30 15:34:09 +00:00
proxy.rs Revert "client: Fix an issue where non-IP proxy URLs didn’t resolve c… (#33013) 2025-06-19 08:56:00 +00:00
telemetry.rs Fix variable name in project type reporting (#35045) 2025-07-24 17:08:02 +00:00
test.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
user.rs Replace zed_llm_client with cloud_llm_client (#35309) 2025-07-30 00:09:14 +00:00
zed_urls.rs Add fast-follows to the AI onboarding flow (#34737) 2025-07-22 02:09:05 -03:00