Enable TCP Fast-Open for outgoing curl requests
This commit is contained in:
parent
93991225fe
commit
1b63951b44
|
@ -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,
|
||||
]);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user