connect-timeout.d 831 B

12345678910111213141516171819202122
  1. c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: connect-timeout
  4. Arg: <fractional seconds>
  5. Help: Maximum time allowed for connection
  6. See-also: max-time
  7. Category: connection
  8. Example: --connect-timeout 20 $URL
  9. Example: --connect-timeout 3.14 $URL
  10. Added: 7.7
  11. Multi: single
  12. ---
  13. Maximum time in seconds that you allow curl's connection to take. This only
  14. limits the connection phase, so if curl connects within the given period it
  15. will continue - if not it will exit. Since version 7.32.0, this option
  16. accepts decimal values.
  17. The "connection phase" is considered complete when the DNS lookup and
  18. requested TCP, TLS or QUIC handshakes are done.
  19. The decimal value needs to provided using a dot (.) as decimal separator - not
  20. the local version even if it might be using another separator.