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