keepalive-time.d 947 B

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