RE: Time-out changed?
Date: Thu, 13 Mar 2008 13:25:23 +0100
Maybe there is a problem with the DNS server. You say it yourself: "cURL
name lookup error"
http://curl.haxx.se/mail/lib-2004-01/0165.html or your other question
CURLOPT_CONNECTTIMEOUT sets a timeout for the "connect phase", which means
that if the timeout doesn't happen until curl has connected, it will not
CURLOPT_TIMEOUT sets a timeout for the entire transfer, so if the transfer
still in progress when the timer times out, the the transfer is aborted.
[mailto:curl-and-php-bounces_at_cool.haxx.se] Namens Broekhuis,Robert R.
Verzonden: donderdag 13 maart 2008 12:55
Onderwerp: Time-out changed?
My hosting provider recently upgraded their server (new system details: PHP
Version 5.2.5, libcurl/7.15.5 OpenSSL/0.9.8c zlib/1.2.3 libidn/0.6.5). Since
then, some of my script are having trouble, apparently because requests for
URLs that are available don't time out as they did before. In my scripts I
But I now find requests going for minutes without timing out, eventually
returning a cURL name lookup error. Did the timeout behavior change? (I
don't know what my previous libcurl version was, unfortunately)
I notice there is also the CURLOPT_CONNECTTIMEOUT setting - how exactly does
this differ from the general TIMEOUT setting?
Thanks for any help!
Received on 2008-03-13