2
0

connect-timeout.d 819 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. continues - if not it exits.
  16. This option accepts decimal values (added in 7.32.0). The decimal value needs
  17. to be provided using a dot (.) as decimal separator - not the local version
  18. even if it might be using another separator.
  19. The connection phase is considered complete when the DNS lookup and requested
  20. TCP, TLS or QUIC handshakes are done.