-
Matt Kotsenas authored
Transient network conditions can cause the CIPD client download to fail, so add a retry to the download. When using `wget` we additionally retry usually fatal errors like "connection refused" via `--retry-connrefused`. `curl` also has that parameter, but it was added more recently in version 7.52.0, which isn't available on supported platforms like Ubuntu 16.04. Once we raise the minimum supported version of curl, we should add that parameter as well. In either case, we retry 3 times and wait 5 seconds between each try, which matches the retries recently added for Windows. Bug: 1145741 Change-Id: Ib73bb3413ba4d5251c2b027a87dabd1378ab6c44 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2532896Reviewed-by: Vadim Shtayura <vadimsh@chromium.org> Commit-Queue: Matthew Kotsenas <mattkot@microsoft.com>
1607bf45