2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2016-11-16 06:44:58 +08:00
|
|
|
Long: connect-timeout
|
2021-08-31 22:37:14 +08:00
|
|
|
Arg: <fractional seconds>
|
2016-11-16 06:44:58 +08:00
|
|
|
Help: Maximum time allowed for connection
|
|
|
|
See-also: max-time
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: connection
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --connect-timeout 20 $URL
|
|
|
|
Example: --connect-timeout 3.14 $URL
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 7.7
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: single
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
|
|
|
Maximum time in seconds that you allow curl's connection to take. This only
|
|
|
|
limits the connection phase, so if curl connects within the given period it
|
|
|
|
will continue - if not it will exit. Since version 7.32.0, this option
|
|
|
|
accepts decimal values.
|
2022-11-23 18:24:26 +08:00
|
|
|
|
2023-06-22 19:18:24 +08:00
|
|
|
The "connection phase" is considered complete when the DNS lookup and
|
|
|
|
requested TCP, TLS or QUIC handshakes are done.
|
2022-11-22 16:28:20 +08:00
|
|
|
|
2022-11-23 18:24:26 +08:00
|
|
|
The decimal value needs to provided using a dot (.) as decimal separator - not
|
|
|
|
the local version even if it might be using another separator.
|