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