keepalive-cnt.md (715B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: keepalive-cnt 5 Arg: <integer> 6 Help: Maximum number of keepalive probes 7 Added: 8.9.0 8 Category: connection 9 Multi: single 10 See-also: 11 - keepalive-time 12 - no-keepalive 13 Example: 14 - --keepalive-cnt 3 $URL 15 --- 16 17 # `--keepalive-cnt` 18 19 Set the maximum number of keepalive probes TCP should send but get no response 20 before dropping the connection. This option is usually used in conjunction 21 with --keepalive-time. 22 23 This option is supported on Linux, *BSD/macOS, Windows \>=10.0.16299, Solaris 24 11.4, and recent AIX, HP-UX and more. This option has no effect if 25 --no-keepalive is used. 26 27 If unspecified, the option defaults to 9.