• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: keepalive-time
5Arg: <seconds>
6Help: Interval time for keepalive probes
7Added: 7.18.0
8Category: connection
9Multi: single
10See-also:
11  - no-keepalive
12  - max-time
13Example:
14  - --keepalive-time 20 $URL
15---
16
17# `--keepalive-time`
18
19This option sets the time a connection needs to remain idle before sending
20keepalive probes and the time between individual keepalive probes. It is
21currently effective on operating systems offering the `TCP_KEEPIDLE` and
22`TCP_KEEPINTVL` socket options (meaning Linux, recent AIX, HP-UX and more).
23Keepalive is used by the TCP stack to detect broken networks on idle
24connections. The number of missed keepalive probes before declaring the
25connection down is OS dependent and is commonly 9 or 10. This option has no
26effect if --no-keepalive is used.
27
28If unspecified, the option defaults to 60 seconds.
29