curl/docs/cmdline-opts/keepalive-cnt.md
Ivan Kuchin b2696ac37a
misc: cleanup after removing years from copyright
- remove leftover copyright years from few test files
- fix email in copyright lines
- consistent format of copyright lines

Closes #14312
2024-07-30 14:11:48 +02:00

28 lines
715 B
Markdown

---
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
Long: keepalive-cnt
Arg: <integer>
Help: Maximum number of keepalive probes
Added: 8.9.0
Category: connection
Multi: single
See-also:
- keepalive-time
- no-keepalive
Example:
- --keepalive-cnt 3 $URL
---
# `--keepalive-cnt`
Set the maximum number of keepalive probes TCP should send but get no response
before dropping the connection. This option is usually used in conjunction
with --keepalive-time.
This option is supported on Linux, *BSD/macOS, Windows \>=10.0.16299, Solaris
11.4, and recent AIX, HP-UX and more. This option has no effect if
--no-keepalive is used.
If unspecified, the option defaults to 9.