yii\elasticsearch\Connection::resetCurlHandle PHP Method

resetCurlHandle() private method

private resetCurlHandle ( )
    private function resetCurlHandle()
    {
        // these functions do not get reset by curl automatically
        static $unsetValues = [CURLOPT_HEADERFUNCTION => null, CURLOPT_WRITEFUNCTION => null, CURLOPT_READFUNCTION => null, CURLOPT_PROGRESSFUNCTION => null];
        curl_setopt_array($this->_curl, $unsetValues);
        if (function_exists('curl_reset')) {
            // since PHP 5.5.0
            curl_reset($this->_curl);
        }
    }