blob: 35215dfd4a806a36d50847e15d8c224b01361fd8 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001Long: retry
2Arg: <num>
3Added: 7.12.3
4Help: Retry request if transient problems occur
5---
6If a transient error is returned when curl tries to perform a transfer, it
7will retry this number of times before giving up. Setting the number to 0
8makes curl do no retries (which is the default). Transient error means either:
9a timeout, an FTP 4xx response code or an HTTP 5xx response code.
10
11When curl is about to retry a transfer, it will first wait one second and then
12for all forthcoming retries it will double the waiting time until it reaches
1310 minutes which then will be the delay between the rest of the retries. By
14using --retry-delay you disable this exponential backoff algorithm. See also
15--retry-max-time to limit the total time allowed for retries.
16
17If this option is used several times, the last one will be used.