From: Michael Wallner Date: Mon, 1 Mar 2021 15:38:49 +0000 (+0100) Subject: add curl request option tcp_fastopen X-Git-Tag: v4.1.0~28 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=cc41c1601014f4fcdcdfda78daf3cff22117cb34;p=m6w6%2Fext-http add curl request option tcp_fastopen --- diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index 1dc3ccb..c3e21b6 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -1415,6 +1415,9 @@ static void php_http_curle_options_init(php_http_options_t *registry) Z_LVAL(opt->defval) = 60; } #endif +#if PHP_HTTP_CURL_VERSION(7,49,0) + php_http_option_register(registry, ZEND_STRL("tcp_fastopen"), CURLOPT_TCP_FASTOPEN, _IS_BOOL); +#endif /* ssl */ if (PHP_HTTP_CURL_FEATURE(CURL_VERSION_SSL)) {