From 1b63951b448253474b7f29f10abe3a32eaca5682 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Sat, 12 Feb 2022 23:06:53 +0100 Subject: [PATCH] Enable TCP Fast-Open for outgoing curl requests --- src/MD_STD.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MD_STD.php b/src/MD_STD.php index 7a3a562..6c8517b 100644 --- a/src/MD_STD.php +++ b/src/MD_STD.php @@ -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, ]); /*