Skip to content

Commit 56719de

Browse files
committed
add option tcp_keepcnt
1 parent 5f84203 commit 56719de

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/php_http_client_curl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,9 @@ static void php_http_curle_options_init(php_http_options_t *registry)
16091609
Z_LVAL(opt->defval) = 60;
16101610
}
16111611
#endif
1612+
#if PHP_HTTP_CURL_VERSION(8,9,0)
1613+
php_http_option_register(registry, ZEND_STRL("tcp_keepcnt"), CURLOPT_TCP_KEEPCNT, IS_LONG);
1614+
#endif
16121615
#if PHP_HTTP_CURL_VERSION(7,49,0)
16131616
# if defined(linux) || defined(__APPLE__)
16141617
/* CURLOPT_TCP_FASTOPEN is not supported (yet) on Windows */

0 commit comments

Comments
 (0)