mirror of
https://github.com/curl/curl.git
synced 2024-12-09 06:30:06 +08:00
68784d73c3
The file format for each option now features a "Example:" header that can provide one or more examples that get rendered appropriately in the output. All options MUST have at least one example or gen.pl complains at build-time. This fix also does a few other minor format and consistency cleanups. Closes #7654
17 lines
602 B
D
17 lines
602 B
D
Long: max-time
|
|
Short: m
|
|
Arg: <fractional seconds>
|
|
Help: Maximum time allowed for transfer
|
|
See-also: connect-timeout
|
|
Category: connection
|
|
Example: --max-time 10 $URL
|
|
Example: --max-time 2.92 $URL
|
|
---
|
|
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.
|