xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | c: Copyright (C) 1998 - 2022, 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. |