blob: 9667633b973d91afa699c7bc42b8c73177295fc4 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
2SPDX-License-Identifier: curl
3Long: keepalive-time
4Arg: <seconds>
5Help: Interval time for keepalive probes
6Added: 7.18.0
7Category: connection
8Example: --keepalive-time 20 $URL
9See-also: no-keepalive max-time
10Multi: single
11---
12This option sets the time a connection needs to remain idle before sending
13keepalive probes and the time between individual keepalive probes. It is
14currently effective on operating systems offering the TCP_KEEPIDLE and
15TCP_KEEPINTVL socket options (meaning Linux, recent AIX, HP-UX and more).
16Keepalives are used by the TCP stack to detect broken networks on idle
17connections. The number of missed keepalive probes before declaring the
18connection down is OS dependent and is commonly 9 or 10. This option has no
19effect if --no-keepalive is used.
20
21If unspecified, the option defaults to 60 seconds.