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()