Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: libcurl - No timeout

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

----- Original Message -----
From: "Daniel Stenberg" <>
To: "libcurl development" <>
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.

> --
> Daniel Stenberg -- --
> Dedicated custom curl help for hire:
Received on 2004-07-17

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET