How to hide TCP_KEEPINTVL and TCP_KEEPCNT errors #19520
-
|
Dear Curl community, Windows 7, Curl 8.16.0. |
Beta Was this translation helpful? Give feedback.
Answered by
bagder
Nov 14, 2025
Replies: 3 comments 11 replies
-
|
Do they go away if you add use the --no-keepalive option? You could add that to
your .curlrc file (called _curlrc on Windows I think).
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I wouldn't actually expect to see these messages unless you're using
--keepalive-time. Are you sure that option isn't being given anywhere, either
on the command-line or in a .curlrc file?
|
Beta Was this translation helpful? Give feedback.
9 replies
-
|
#19527 is now merged! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's Windows, we can't expect this to have a simple solution but we can certainly work on improving this.
Currently the code does a build-time decision on what code to run, and if it is built for >= Windows 10, version 1709, then it will set options that if the executable runs on an older Windows version fail.
Clearly, this function would ideally instead check the Windows version in run-time and opt to only use the keeplive options that are known to work.
Alternative takes:
tcptracing