lib/Elastica/Transport/Http.php
protected function _getConnection(bool $persistent = true)
    {
        if (!$persistent || !self::$_curlConnection) {
            self::$_curlConnection = \curl_init();
        }

        return self::$_curlConnection;
    }
protected function _getConnection(bool $persistent = true)
    {
        if (!$persistent || !self::$_curlConnection) {
            self::$_curlConnection = \curl_init();
        }

        return self::$_curlConnection;
    }
protected function _getConnection ( bool $ persistent = true ) { if ( ! $ persistent || ! self :: $ _curlConnection ) { self :: $ _curlConnection = \ curl_init ( ) ; } return self :: $ _curlConnection ; }
Return Curl resource.

@param bool $persistent False if not persistent connection

@return resource Connection resource
Return Curl resource .