CURL.SetOptionTCPKeepInterval
-----------------------------

Set TCP keep-alive interval.

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

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

**MBS**( **"CURL.SetOptionTCPKeepInterval";** /\* Set TCP keep-alive interval. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* The new value.e.g. 60 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | The new value. | 60 |

### Result

Returns OK or error.

### Description

Set TCP keep-alive interval.  
Sets the interval, in seconds, that the operating system will wait between sending keepalive probes. Not all operating systems support this option.  
See also [TCP\_KEEPINTVL](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPINTVL.html) option in CURL manual.

### See also

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

Created 8th July 2015 , last changed 9th July 2015

  
[CURL.SetOptionTCPKeepIdle](CURLSetOptionTCPKeepIdle.md) - [CURL.SetOptionTCPNoDelay](CURLSetOptionTCPNoDelay.md)

[HTML Version](CURLSetOptionTCPKeepInterval.shtml)