Problems with curl timeout setting

[email protected]
Newsgroups gmane.comp.web.curl.php
Message-ID <[email protected]>
Hello

 I am using curl in php 5.3.3  on RHEL5.4 with the following settings

     $conn[$i] = curl_init($url[1]);
     curl_setopt($conn[$i], CURLOPT_RETURNTRANSFER, 1);
     curl_setopt($conn[$i], CURLOPT_NOSIGNAL, 1);
     curl_setopt($conn[$i], CURLOPT_NOPROGRESS, 1);
     curl_setopt($conn[$i], CURLOPT_FAILONERROR, 1);
     curl_setopt($conn[$i], CURLOPT_URL, $url[1]);
     curl_setopt($conn[$i], CURLOPT_USERAGENT, $agent);
     curl_setopt($conn[$i], CURLOPT_HTTPHEADER, $header);
     curl_setopt($conn[$i], CURLOPT_SSL_VERIFYPEER, 0);
     curl_setopt($conn[$i], CURLOPT_FOLLOWLOCATION, 1);
     curl_setopt($conn[$i], CURLOPT_MAXREDIRS, 1);
     curl_setopt($conn[$i], CURLOPT_REFERER, $referer);
     curl_setopt($conn[$i], CURLOPT_DNS_USE_GLOBAL_CACHE, 1);

and the following timeout settings
    curl_setopt($conn[$i],CURLOPT_CONNECTTIMEOUT_MS,300);
    curl_setopt($conn[$i],CURLOPT_TIMEOUT_MS,2000);

Even though the timeout setting is 2000ms I am receiving the following message::

Operation timed out after 2928 milliseconds with 0 bytes received

any help on this would be appreciated, we are fighting with this for months, literally :)

ps. we are connecting through IP, not domain, so dns is not at fault here




-- 
Best regards,
 127546                          mailto:[email protected]

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.