OK, I tested on another server with lib-curl 7.21.4 installed. TIMEOUT-MS works as expected on that system whether passing the URL with an IP address or a hostname. I guess the name-resolver section got fixed.
Timing out with any call less than 1000 ms on 7.19.7, even when passing the IP address and avoiding name resolution, does appear to be a bug in that version. Unfortunately, that is the version that currently installs when using yum on Fedora. - Matt On Jun 7, 2012, at 5:14 PM, Matt Marulla wrote: > Thanks for the quick reply! > > By placing a timer around the curl_exec, I have confirmed that it always > times out when set to 999, but only times-out on legitimate issues when set > to 1000. > > I will try installed a more recent build. > > - Matt > > On Jun 7, 2012, at 4:58 PM, Daniel Stenberg wrote: > >> On Thu, 7 Jun 2012, Matt Marulla wrote: >> >>> in my install (PHP 5.3.8, lib-curl 7.19.7), I am still getting immediate >>> time-outs when setting TIMEOUT-MS to less than 1000, even when using the IP >>> address in the URL, thus, avoiding name resolution. >> >> The name resolve is not the only thing that can take a little time. But >> there's of course also the chance you might experiencing a bug. >> >> You're however using a libcurl version that is 17 releases old so we'd like >> you to run a test with a modern version to see if this problem still remains >> or not! >> >> -- >> >> / daniel.haxx.se >> ------------------------------------------------------------------- >> List admin: http://cool.haxx.se/list/listinfo/curl-library >> Etiquette: http://curl.haxx.se/mail/etiquette.html > > ------------------------------------------------------------------- > List admin: http://cool.haxx.se/list/listinfo/curl-library > Etiquette: http://curl.haxx.se/mail/etiquette.html ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
