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