cloudflared-mirror/cmd/cloudflared
Adam Chalmers a278753bbf TUN-3902: Add jitter to backoffhandler
Jitter is important to avoid every cloudflared in the world trying to
reconnect at t=1, 2, 4, etc. That could overwhelm the backend. But
if each cloudflared randomly waits for up to 2, then up to 4, then up
to 8 etc, then the retries get spread out evenly across time.

On average, wait times should be the same (e.g. instead of waiting for
exactly 1 second, cloudflared will wait betweeen 0 and 2 seconds).

This is the "Full Jitter" algorithm from https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/
2021-02-11 14:36:13 +00:00
..
access Update error message to use login command 2021-02-09 17:15:13 +00:00
buildinfo TUN-3470: Replace in-house logger calls with zerolog 2020-12-23 14:15:17 -06:00
cliutil TUN-3470: Replace in-house logger calls with zerolog 2020-12-23 14:15:17 -06:00
config TUN-3471: Add structured log context to logs 2021-01-05 20:21:16 +00:00
encrypter TUN-1099: Bring back changes in 2018.10.1 2018-10-08 14:20:28 -05:00
path AUTH-3221: Saves org token to disk and uses it to refresh the app token 2020-11-24 21:38:59 +00:00
shell AUTH-2077: Quotes open browser command in windows 2019-09-24 18:27:37 +00:00
token AUTH-3375 exchangeOrgToken deleted cookie fix 2021-02-10 16:09:50 +00:00
transfer TUN-3471: Add structured log context to logs 2021-01-05 20:21:16 +00:00
tunnel TUN-3864: Users can choose where credentials file is written after creating a tunnel 2021-02-05 11:20:51 -06:00
ui TUN-3635: Send event when unregistering tunnel for gracful shutdown so /ready endpoint reports down status befoe connections finish handling pending requests. 2021-02-08 15:38:42 +00:00
updater TUN-3471: Add structured log context to logs 2021-01-05 20:21:16 +00:00
app_forward_service.go TUN-3470: Replace in-house logger calls with zerolog 2020-12-23 14:15:17 -06:00
app_resolver_service.go TUN-3471: Add structured log context to logs 2021-01-05 20:21:16 +00:00
app_service.go TUN-3470: Replace in-house logger calls with zerolog 2020-12-23 14:15:17 -06:00
fips.go TUN-3826: Use go-fips when building cloudflared for linux/amd64 2021-02-02 18:12:14 +00:00
generic_service.go TUN-3233: List tunnels support filtering by deleted, name, existed at and id 2020-08-07 10:09:26 +01:00
linux_service.go TUN-3792: Handle graceful shutdown correctly when running as a windows service. Only expose one shutdown channel globally, which now triggers the graceful shutdown sequence across all modes. Removed separate handling of zero-duration grace period, instead it's checked only when we need to wait for exit. 2021-01-27 07:21:34 -06:00
macos_service.go TUN-3792: Handle graceful shutdown correctly when running as a windows service. Only expose one shutdown channel globally, which now triggers the graceful shutdown sequence across all modes. Removed separate handling of zero-duration grace period, instead it's checked only when we need to wait for exit. 2021-01-27 07:21:34 -06:00
main.go TUN-3902: Add jitter to backoffhandler 2021-02-11 14:36:13 +00:00
service_template.go TUN-3459: Make service install on linux use named tunnels 2020-10-21 10:46:29 -05:00
windows_service.go TUN-3792: Handle graceful shutdown correctly when running as a windows service. Only expose one shutdown channel globally, which now triggers the graceful shutdown sequence across all modes. Removed separate handling of zero-duration grace period, instead it's checked only when we need to wait for exit. 2021-01-27 07:21:34 -06:00