ZIm/crates/client/src
Antonio Scandurra 268fc411a2 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 11:38:01 -04: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 11:38:01 -04: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 Improve FreeBSD support (#33162) 2025-06-22 16:23:17 -04:00
test.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
user.rs ai onboarding: Add overall fixes to the whole flow (#34996) 2025-07-24 11:20:26 -04:00
zed_urls.rs Add fast-follows to the AI onboarding flow (#34737) 2025-07-22 02:09:05 -03:00