Skip to content

Commit d78b3e7

Browse files
committed
[PHP 8.4] Curl: Add CURLOPT_TCP_KEEPCNT option
Commit: php/php-src#15446 PHP.Watch: [PHP 8.4: Curl: New `CURLOPT_TCP_KEEPCNT` option](https://php.watch/versions/8.4/CURLOPT_TCP_KEEPCNT)
1 parent b586d2f commit d78b3e7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

reference/curl/constants_curl_setopt.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3854,6 +3854,8 @@
38543854
frequency of these probes can be controlled by the <constant>CURLOPT_TCP_KEEPIDLE</constant>
38553855
and <constant>CURLOPT_TCP_KEEPINTVL</constant> options, provided the operating system
38563856
supports them. If set to <literal>0</literal> (default) keepalive probes are disabled.
3857+
The maximum number of probes can be set with the <constant>CURLOPT_TCP_KEEPCNT</constant>
3858+
option.
38573859
Available as of cURL 7.25.0.
38583860
</para>
38593861
</listitem>
@@ -3888,6 +3890,19 @@
38883890
</para>
38893891
</listitem>
38903892
</varlistentry>
3893+
<varlistentry xml:id="constant.curlopt-tcp-keepcnt">
3894+
<term>
3895+
<constant>CURLOPT_TCP_KEEPCNT</constant>
3896+
(<type>int</type>)
3897+
</term>
3898+
<listitem>
3899+
<para>
3900+
Sets the maximum number of TCP keep-alive probes.
3901+
The default is <literal>9</literal>.
3902+
Available as of PHP 8.4.0 and cURL 8.9.0.
3903+
</para>
3904+
</listitem>
3905+
</varlistentry>
38913906
<varlistentry xml:id="constant.curlopt-tcp-nodelay">
38923907
<term>
38933908
<constant>CURLOPT_TCP_NODELAY</constant>

0 commit comments

Comments
 (0)