cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How do timeouts work?

From: <RBramante_at_on.com>
Date: Fri, 9 May 2003 09:50:15 -0400

So just to clarify this, in the LOW_SPEED scenario, the TIME is a
contiguous block of time below the LIMIT and not total time below the
LIMIT, correct?

                                                                                                                                                   
                      Daniel Stenberg
                      <daniel_at_haxx.se> To: libcurl Mailing list <curl-library_at_lists.sourceforge.net>
                      Sent by: cc:
                      curl-library-admin_at_lists.sour Subject: Re: How do timeouts work?
                      ceforge.net
                                                                                                                                                   
                                                                                                                                                   
                      05/09/2003 03:54 AM
                      Please respond to
                      curl-library
                                                                                                                                                   
                                                                                                                                                   

On Thu, 8 May 2003, Dennis Carney wrote:

> If I use CURLOPT_TIMEOUT=120sec (for example), does the connection time
out
> if the *entire* transfer takes more than 120 seconds, or does it time out
> if at some point cURL doesn't hear anything from the other end for 120
> seconds (essentially, if there is 120 seconds of silence)?

CURLOPT_TIMEOUT is for the whole operation. If it still transfers after 120
seconds, it'll bail out.

You can make a check for 120 seconds of silence too, if you want that, by
using the CURLOPT_LOW_SPEED_LIMIT and CURLOPT_LOW_SPEED_TIME options.

-------------------------------------------------------
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-09