2
0

max-time.d 899 B

1234567891011121314151617181920212223
  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. ---
  13. Maximum time in seconds that you allow each transfer to take. This is
  14. useful for preventing your batch jobs from hanging for hours due to slow
  15. networks or links going down. Since 7.32.0, this option accepts decimal
  16. values, but the actual timeout will decrease in accuracy as the specified
  17. timeout increases in decimal precision.
  18. If you enable retrying the transfer (--retry) then the maximum time counter is
  19. reset each time the transfer is retried. You can use --retry-max-time to limit
  20. the retry time.
  21. If this option is used several times, the last one will be used.