Skip to content

Commit

Permalink
usingcurl/connections/keepalive.md: mention --keepalive-cnt
Browse files Browse the repository at this point in the history
Fixes #467
  • Loading branch information
bagder committed Jun 18, 2024
1 parent eaa4518 commit bcf9738
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index-words
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
--http3-only
--ipfs-gateway
--json
--keepalive-cnt
--keepalive-time
--libcurl
--limit-rate
Expand All @@ -47,6 +48,7 @@
--no-clobber
--no-eprt
--no-epsv
--no-keepalive
--ntlm
--output-dir
--parallel
Expand Down Expand Up @@ -254,9 +256,9 @@ CURLOPT_SSL_VERIFYPEER
CURLOPT_SSLVERSION
CURLOPT_STDERR
CURLOPT_TCP_KEEPALIVE
CURLOPT_TCP_KEEPCNT
CURLOPT_TCP_KEEPIDLE
CURLOPT_TCP_KEEPINTVL
CURLOPT_TCP_KEEPCNT
CURLOPT_TIMEOUT
CURLOPT_TLSAUTH_USERNAME
CURLOPT_UPLOAD
Expand Down
6 changes: 6 additions & 0 deletions usingcurl/connections/keepalive.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ switch off keepalive with:
or change the interval to 5 minutes (300 seconds) with:

curl --keepalive-time 300 https://example.com/

Starting in curl 8.9.0 you can set the number of keepalive probes curl sends
but not getting a response to before it gives up, with `--keepalive-cnt`. Like
this:

curl --keepalive-cnt 3 https://example.com

0 comments on commit bcf9738

Please sign in to comment.