cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl - No timeout

From: Roland Krikava <list-subs_at_bluedigits.com>
Date: Sat, 17 Jul 2004 11:17:47 -0400

----- Original Message -----
From: "Daniel Stenberg" <daniel-curl_at_haxx.se>
To: "libcurl development" <curl-library_at_cool.haxx.se>
Sent: Saturday, July 17, 2004 4:02 AM
Subject: Re: libcurl - No timeout

> On Fri, 16 Jul 2004, Roland Krikava wrote:
>
> > The connection will however timeout after a few minutes.
>
> Yes, since Apache will close it down. You could write your own server
though
> that does this and never times out. Neiter will libcurl in that case.
>
> > Any suggestions on how to troubleshoot this, and avoid setting timeouts
that
> > kill legitimate connections?
>
> First off, what is a "legitimate connection" and how can libcurl tell?

If data is available for reading, I would call this legitimate. Large files
that take a long time to download could outlast any CURLOPT_TIMEOUT. If,
however, this timeout was used instead to timeout on inactive connections,
this problem would be avoided.

>
> I suggest you either use the CURLOPT_LOW_SPEED_LIMIT option or you use the
> progress callback to figure out yourself when you think the connection is
no
> longer interesting.

I will look into it, thanks.

>
> --
> Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
> Dedicated custom curl help for hire: http://haxx.se/curl.html
>
>
Received on 2004-07-17