Re: libcurl - No timeout
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
> that does this and never times out. Neiter will libcurl in that case.
> > Any suggestions on how to troubleshoot this, and avoid setting timeouts
> > 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
> longer interesting.
I will look into it, thanks.