projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
cc5360e
)
add curl request option tcp_fastopen
author
Michael Wallner
<mike@php.net>
Mon, 1 Mar 2021 15:38:49 +0000
(16:38 +0100)
committer
Michael Wallner
<mike@php.net>
Mon, 1 Mar 2021 15:38:49 +0000
(16:38 +0100)
src/php_http_client_curl.c
patch
|
blob
|
history
diff --git
a/src/php_http_client_curl.c
b/src/php_http_client_curl.c
index 1dc3ccb7a9bf732c581de075744dd7490df9c329..c3e21b68e3d39c47916ca11f6a3d545fa10c9eb7 100644
(file)
--- 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)) {