From a29f2b8996cfa07982710f75cc694001e88bd83f Mon Sep 17 00:00:00 2001 From: Olivier Bellone Date: Tue, 11 Dec 2018 13:40:21 -0800 Subject: [PATCH] Remove curl_reset check --- lib/HttpClient/CurlClient.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/HttpClient/CurlClient.php b/lib/HttpClient/CurlClient.php index a4ef55519..4431c7a9b 100644 --- a/lib/HttpClient/CurlClient.php +++ b/lib/HttpClient/CurlClient.php @@ -40,7 +40,7 @@ public static function instance() protected $userAgentInfo; - protected $enablePersistentConnections = null; + protected $enablePersistentConnections = true; protected $curlHandle = null; @@ -62,10 +62,6 @@ public function __construct($defaultOptions = null, $randomGenerator = null) $this->defaultOptions = $defaultOptions; $this->randomGenerator = $randomGenerator ?: new Util\RandomGenerator(); $this->initUserAgentInfo(); - - // TODO: curl_reset requires PHP >= 5.5.0. Once we drop support for PHP 5.4, we can simply - // initialize this to true. - $this->enablePersistentConnections = function_exists('curl_reset'); } public function __destruct()