cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: timeout with Unix multithread program

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 27 Dec 2002 18:58:35 +0100 (MET)

On Mon, 23 Dec 2002, Legoff Vincent wrote:

> I have a Unix multithread program, and I would like to set a timeout for
> the HTTP connection and also for the download. It seems that
> CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT do not work for such a program.

Why not? AFAIK, they do.

> Is there another way to set such timeout in my program?

Yes, there are also the CURLOPT_LOW_SPEED_LIMIT and CURLOPT_LOW_SPEED_TIME
pair that limits connection times.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-12-27