diff --git a/library/Zend/Http/Client/Adapter/Curl.php b/library/Zend/Http/Client/Adapter/Curl.php index 3ef6c8ecca..535b0ab41f 100644 --- a/library/Zend/Http/Client/Adapter/Curl.php +++ b/library/Zend/Http/Client/Adapter/Curl.php @@ -228,10 +228,12 @@ public function connect($host, $port = 80, $secure = false) curl_setopt($this->_curl, CURLOPT_CONNECTTIMEOUT, $this->_config['timeout']); } - if (defined('CURLOPT_TIMEOUT_MS')) { - curl_setopt($this->_curl, CURLOPT_TIMEOUT_MS, $this->_config['timeout'] * 1000); - } else { - curl_setopt($this->_curl, CURLOPT_TIMEOUT, $this->_config['timeout']); + if (array_key_exists('request_timeout', $this->_config)) { + if (defined('CURLOPT_TIMEOUT_MS')) { + curl_setopt($this->_curl, CURLOPT_TIMEOUT_MS, $this->_config['request_timeout'] * 1000); + } else { + curl_setopt($this->_curl, CURLOPT_TIMEOUT, $this->_config['request_timeout']); + } } // Set Max redirects