Skip to content

Commit 58e0647

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 826c2e6 commit 58e0647

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
@@ -3855,6 +3855,8 @@
38553855
frequency of these probes can be controlled by the <constant>CURLOPT_TCP_KEEPIDLE</constant>
38563856
and <constant>CURLOPT_TCP_KEEPINTVL</constant> options, provided the operating system
38573857
supports them. If set to <literal>0</literal> (default) keepalive probes are disabled.
3858+
The maximum number of probes can be set with the <constant>CURLOPT_TCP_KEEPCNT</constant>
3859+
option.
38583860
Available as of cURL 7.25.0.
38593861
</para>
38603862
</listitem>
@@ -3889,6 +3891,19 @@
38893891
</para>
38903892
</listitem>
38913893
</varlistentry>
3894+
<varlistentry xml:id="constant.curlopt-tcp-keepcnt">
3895+
<term>
3896+
<constant>CURLOPT_TCP_KEEPCNT</constant>
3897+
(<type>int</type>)
3898+
</term>
3899+
<listitem>
3900+
<para>
3901+
Sets the maximum number of TCP keep-alive probes.
3902+
The default is <literal>9</literal>.
3903+
Available as of PHP 8.4.0 and cURL 8.9.0.
3904+
</para>
3905+
</listitem>
3906+
</varlistentry>
38923907
<varlistentry xml:id="constant.curlopt-tcp-nodelay">
38933908
<term>
38943909
<constant>CURLOPT_TCP_NODELAY</constant>

0 commit comments

Comments
 (0)