--retryoption you can tell curl to retry certain failed transfers.
--retry-delayyou can disable this exponential backoff algorithm and set your own delay between the attempts. With
--retry-max-timeyou cap the total time allowed for retries. The
--max-timeoption will still specify the longest time a single of these transfers is allowed to spend.
ECONNREFUSEDa reason for retry:
--retry-all-errorsmakes curl treat all transfers failures as reason for retry.