max-time.d 874 B

1234567891011121314151617181920212223
  1. c: Copyright (C) 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. Multi: single
  13. ---
  14. Maximum time in seconds that you allow each transfer to take. This is useful
  15. for preventing your batch jobs from hanging for hours due to slow networks or
  16. links going down. This option accepts decimal values (added in 7.32.0).
  17. If you enable retrying the transfer (--retry) then the maximum time counter is
  18. reset each time the transfer is retried. You can use --retry-max-time to limit
  19. the retry time.
  20. The decimal value needs to provided using a dot (.) as decimal separator - not
  21. the local version even if it might be using another separator.