xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. |
| 2 | SPDX-License-Identifier: curl |
| 3 | Long: max-time |
| 4 | Short: m |
| 5 | Arg: <fractional seconds> |
| 6 | Help: Maximum time allowed for transfer |
| 7 | See-also: connect-timeout retry-max-time |
| 8 | Category: connection |
| 9 | Example: --max-time 10 $URL |
| 10 | Example: --max-time 2.92 $URL |
| 11 | Added: 4.0 |
| 12 | Multi: single |
| 13 | --- |
| 14 | Maximum time in seconds that you allow each transfer to take. This is |
| 15 | useful for preventing your batch jobs from hanging for hours due to slow |
| 16 | networks or links going down. Since 7.32.0, this option accepts decimal |
| 17 | values, but the actual timeout will decrease in accuracy as the specified |
| 18 | timeout increases in decimal precision. |
| 19 | |
| 20 | If you enable retrying the transfer (--retry) then the maximum time counter is |
| 21 | reset each time the transfer is retried. You can use --retry-max-time to limit |
| 22 | the retry time. |