Date: Thu, 12 Feb 2004 15:23:48 +0100 (CET)
On Wed, 11 Feb 2004, codemastr wrote:
> Exactly what operations does the CURLOPT_TIMEOUT include?
Everything. It is meant to be the maximum time the operation will take. No
matter what it does.
> Basically I'm trying to fine tune this as much as possible. Ideally I'd like
> to set 1 limit for DNS, 1 limit for connect(), 1 limit for an individual
> operation (i.e. read() time out) and 1 limit as an overall maxtime for the
> entire transfer. It doesn't seem like that is possible however. Any ideas on
> what the closest I can come to this is?
libcurl only features two timeouts that would partly help you:
CURLOPT_TIMEOUT - timeouts evertything after N seconds
CURLOPT_CONNECTTIMEOUT - timeouts a slow connect after N seconds, but once
the connect is made, the timeout is ignored.
-- Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/ [[ Do not send mails to this email address. They won't reach me. ]]Received on 2004-02-12