max-time.d 797 B

123456789101112131415161718192021
  1. Long: max-time
  2. Short: m
  3. Arg: <fractional seconds>
  4. Help: Maximum time allowed for transfer
  5. See-also: connect-timeout retry-max-time
  6. Category: connection
  7. Example: --max-time 10 $URL
  8. Example: --max-time 2.92 $URL
  9. Added: 4.0
  10. ---
  11. Maximum time in seconds that you allow each transfer to take. This is
  12. useful for preventing your batch jobs from hanging for hours due to slow
  13. networks or links going down. Since 7.32.0, this option accepts decimal
  14. values, but the actual timeout will decrease in accuracy as the specified
  15. timeout increases in decimal precision.
  16. If you enable retrying the transfer (--retry) then the maximum time counter is
  17. reset each time the transfer is retried. You can use --retry-max-time to limit
  18. the retry time.
  19. If this option is used several times, the last one will be used.