cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How do timeouts work?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 11 May 2003 18:34:48 +0200 (CEST)

On Fri, 9 May 2003, Dennis Carney wrote:

> So, just to be clear, if I set LOW_SPEED_LIMIT to 1 and LOW_SPEED_TIME to
> 120 seconds, I would achieve my "120 seconds of silence" timeout?

Yes.

> > You can also make a timeout abort yourself by setting a progress function
> > callback pointer that returns non-zero when you think the time is up.

> How often is the progress function called? Is it called even when there is
> no activity on the connection?

The progress function is called once every second if there's no activity. If
there *is* activity, it can be called a lot more often.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
Received on 2003-05-11