mirror of
https://github.com/curl/curl.git
synced 2025-01-12 13:55:11 +08:00
2494b8dd51
- switch all invidual files documenting command line options into .md, as the documentation is now markdown-looking. - made the parser treat 4-space indents as quotes - switch to building the curl.1 manpage using the "mainpage.idx" file, which lists the files to include to generate it, instead of using the previous page-footer/headers. Also, those files are now also .md ones, using the same format. I gave them underscore prefixes to make them sort separately: _NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md, _VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md, _OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md, _EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md - updated test cases accordingly Closes #12751
29 lines
924 B
Markdown
29 lines
924 B
Markdown
---
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
SPDX-License-Identifier: curl
|
|
Long: keepalive-time
|
|
Arg: <seconds>
|
|
Help: Interval time for keepalive probes
|
|
Added: 7.18.0
|
|
Category: connection
|
|
Multi: single
|
|
See-also:
|
|
- no-keepalive
|
|
- max-time
|
|
Example:
|
|
- --keepalive-time 20 $URL
|
|
---
|
|
|
|
# `--keepalive-time`
|
|
|
|
This option sets the time a connection needs to remain idle before sending
|
|
keepalive probes and the time between individual keepalive probes. It is
|
|
currently effective on operating systems offering the `TCP_KEEPIDLE` and
|
|
`TCP_KEEPINTVL` socket options (meaning Linux, recent AIX, HP-UX and more).
|
|
Keepalive is used by the TCP stack to detect broken networks on idle
|
|
connections. The number of missed keepalive probes before declaring the
|
|
connection down is OS dependent and is commonly 9 or 10. This option has no
|
|
effect if --no-keepalive is used.
|
|
|
|
If unspecified, the option defaults to 60 seconds.
|