| 1 |
# wget(1) is flaky, on the GitLab ARM runners downloading from github.com, |
| 2 |
# with intermittent “unable to establish SSL connection” that I can’t figure |
| 3 |
# out how to retry, so use curl(1) instead. |
| 4 |
|
| 5 |
# follow redirects |
| 6 |
location |
| 7 |
|
| 8 |
# use server-specified filename (same as -O and -J) unless overridden with -o |
| 9 |
remote-name-all |
| 10 |
remote-header-name |
| 11 |
|
| 12 |
# global timeout for the whole download (seconds) |
| 13 |
max-time = 120 |
| 14 |
|
| 15 |
# connection timeout, including TLS handshake (seconds) |
| 16 |
connect-timeout = 15 |
| 17 |
|
| 18 |
# number of retries (exponential back-off) |
| 19 |
retry = 8 |
| 20 |
|
| 21 |
# retry connection refused |
| 22 |
retry-connrefused |
| 23 |
|
| 24 |
# “retry on any error ... the ‘sledgehammer’ of retrying” |
| 25 |
retry-all-errors |
| 26 |
|
| 27 |
# remove partly download files on error (before retry) |
| 28 |
# not all curls support this |
| 29 |
remove-on-error |