Enable TCP Fast-Open for outgoing curl requests

This commit is contained in:
Joshua Ramon Enslin 2022-02-12 23:06:53 +01:00
parent 93991225fe
commit 1b63951b44
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -302,10 +302,11 @@ final class MD_STD {
CURLOPT_CONNECTTIMEOUT_MS => $timeout, //timeout in seconds
CURLOPT_TIMEOUT_MS => $timeout, //timeout in seconds
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_2_0,
// CURLOPT_COOKIESESSION => true,
CURLOPT_AUTOREFERER => true,
CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2',
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_2_0,
CURLOPT_TCP_FASTOPEN => true,
]);
/*