Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

CURL.SetOptionTCPKeepCount

Maximum number of TCP keep-alive probes.

Component Version macOS Windows Linux Server iOS SDK
CURL 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetOptionTCPKeepCount"; curl; Value )   More

Parameters

Parameter Description Example
curl The CURL session handle. $curl
Value The new setting. 1

Result

Returns OK or error.

Description

Maximum number of TCP keep-alive probes.
Sets the number of probes to send before dropping the connection. Not all operating systems support this option. (Added in curl 8.9.0)
The maximum value this option accepts is INT_MAX or whatever your system allows. Any larger value is capped to this amount.
Default is 9.

See also

Release notes

Blog Entries

This function checks for a license.

Created 13th April 2025, last changed 13th April 2025


CURL.SetOptionTCPKeepAlive - CURL.SetOptionTCPKeepIdle