Q: Zend_Http_Client Hangs when attempting to request an invalid URL I am using Zend_Http_Client to request an URL, the HTTP client has a timeout set to 10.
$config = array(
    'adapter'   => 'Zend_Http_Client_Adapter_Curl',
    'curloptions' => array(
        CURLOPT_USERAGENT      => 'Zend_Curl_Adapter',
        CURLOPT_HEADER         => 0,
        CURLOPT_VERBOSE        => 0,
        CURLOPT_RETURNTRANSFER => 1,
        CURLOPT_TIMEOUT        => 10,
        CURLOPT_SSL_VERIFYPEER => false,
    ),
);

For testing I have also added a set time limit to try to stop it from hanging:
set_time_limit(10);

try {
    $client->request($method);
} catch (Zend_Http_Client_Exception $e) {
    // ...
}

The request simply hangs, so I can't get a response object and no exceptions / fatals are thrown. Anyone had this problem before?

A: Have you tried adding the CURLOPT_CONNECTTIMEOUT option?
