Skip to content

Commit

Permalink
[PHP 8.4] Curl: Add CURLOPT_TCP_KEEPCNT option
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Ayesh committed Nov 16, 2024
1 parent 826c2e6 commit 58e0647
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions reference/curl/constants_curl_setopt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3855,6 +3855,8 @@
frequency of these probes can be controlled by the <constant>CURLOPT_TCP_KEEPIDLE</constant>
and <constant>CURLOPT_TCP_KEEPINTVL</constant> options, provided the operating system
supports them. If set to <literal>0</literal> (default) keepalive probes are disabled.
The maximum number of probes can be set with the <constant>CURLOPT_TCP_KEEPCNT</constant>
option.
Available as of cURL 7.25.0.
</para>
</listitem>
Expand Down Expand Up @@ -3889,6 +3891,19 @@
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.curlopt-tcp-keepcnt">
<term>
<constant>CURLOPT_TCP_KEEPCNT</constant>
(<type>int</type>)
</term>
<listitem>
<para>
Sets the maximum number of TCP keep-alive probes.
The default is <literal>9</literal>.
Available as of PHP 8.4.0 and cURL 8.9.0.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.curlopt-tcp-nodelay">
<term>
<constant>CURLOPT_TCP_NODELAY</constant>
Expand Down

0 comments on commit 58e0647

Please sign in to comment.