cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Using CURLOPT_TIMEOUT_MS correctly?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 30 Jan 2008 20:43:35 +0100 (CET)

On Wed, 30 Jan 2008, Kevin Eppinger wrote:

> This ALWAYS returns errno 28 (Timeout was reached) for ANY URL that
> I try. The only way I can get it to work is if I set the MS timeout
> value >= 1000. I can set it to 999 and it immediately fails, but bump
> it up to 1000 and everything is fine. Is anyone else seeing this behavior?

I think you're seeing this because your libcurl build uses a subsystem which
only allows full-second resolutions for timeout handling (when doing name
resolves) so when you use a host name that isn't resolved instantly the
timeout will trigger.

Of course I can be wrong. Reading up on the source code would tell for sure...

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-01-30