2016-11-16 06:44:58 +08:00
|
|
|
Long: max-time
|
|
|
|
Short: m
|
2021-08-31 22:37:14 +08:00
|
|
|
Arg: <fractional seconds>
|
|
|
|
Help: Maximum time allowed for transfer
|
2016-11-16 06:44:58 +08:00
|
|
|
See-also: connect-timeout
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: connection
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --max-time 10 $URL
|
|
|
|
Example: --max-time 2.92 $URL
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 4.0
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
|
|
|
Maximum time in seconds that you allow the whole operation to take. This is
|
|
|
|
useful for preventing your batch jobs from hanging for hours due to slow
|
|
|
|
networks or links going down. Since 7.32.0, this option accepts decimal
|
|
|
|
values, but the actual timeout will decrease in accuracy as the specified
|
|
|
|
timeout increases in decimal precision.
|
|
|
|
|
|
|
|
If this option is used several times, the last one will be used.
|