cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Missing Timeout?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 19 Oct 2001 10:17:21 +0200 (MET DST)

On Wed, 17 Oct 2001, Yanick Pelletier wrote:

Please use the mailing list. The last week we've seen an extra intense period
of mails regarding curl and libcurl. You'll help me a lot by not addressing
me privately, as many other people could reply to mails if they're posted to
public forums, such as the mailing lists. Thanks for respecting this!

> I have a problem where i ask a server for an Header and it give me
> nothing, but the connection stay open, so the Transfer() function loop
> for ever!

Hm, yes. That is not actually an error condition! ;-)

> cURL posseed two Timeout option, one for the connection
> (CURLOPT_CONNECTTIMEOUT) and another for the total transfert time
> (CURLOPT_TIMEOUT). No one is usefull for me since i don't want to use
> CURLOPT_TIMEOUT since it can stop working transfert (the slow one).

Yeps.

> So does it is possible to have a Timeout that check the elapsed time
> between the receipt of data? This is in my opinion a better way to
> handle a timeout!

You mean like the CURLOPT_LOW_SPEED_LIMIT and CURLOPT_LOW_SPEED_TIME options?

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on 2001-10-19