CURL.SetOptionTCPKeepCount
--------------------------

Maximum number of TCP keep-alive probes.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [15.2](newinversion152.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetOptionTCPKeepCount"; curl; Value ) 

**MBS**( **"CURL.SetOptionTCPKeepCount";** /\* Maximum number of TCP keep-alive probes. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* The new setting.e.g. 1 \*/ 

### 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

- [CURL.SetOptionFTPAccount](CURLSetOptionFTPAccount.md)
- [CURL.SetOptionTCPKeepAlive](CURLSetOptionTCPKeepAlive.md)
- [CURL.SetOptionTCPKeepIdle](CURLSetOptionTCPKeepIdle.md)

### Release notes

- **Version 15.2**
    - Added [CURL.SetOptionTCPKeepCount](https://www.mbsplugins.eu/CURLSetOptionTCPKeepCount.shtml) and [CURL.SetOptionUploadFlags](https://www.mbsplugins.eu/CURLSetOptionUploadFlags.shtml) functions.

### Blog Entries

- [News in MBS FileMaker Plugin 15.2](https://www.mbsplugins.de/archive/2025-05-13/News_in_MBS_FileMaker_Plugin_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.2pr4](https://www.mbsplugins.de/archive/2025-04-16/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[CURL.SetOptionTCPKeepAlive](CURLSetOptionTCPKeepAlive.md) - [CURL.SetOptionTCPKeepIdle](CURLSetOptionTCPKeepIdle.md)

[HTML Version](CURLSetOptionTCPKeepCount.shtml)