cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Questions on option CURLOPT_OPERATION_TIMEOUT

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Tue, 25 Sep 2007 14:25:05 -0500

On 9/25/07, Stefan Krause <stefan.krause_at_gmx.net> wrote:
> Is there an user configurable timeout option available with the
> following logic: In case no data has been received for X seconds over
> the socket connection, the transfer aborts? Then a large amount of data
> could be transferred without aborting a perfect running operation.

This will time out if less than two bytes are received in 30 seconds...

  curl_easy_setopt(easy,CURLOPT_LOW_SPEED_LIMIT,2);
  curl_easy_setopt(easy,CURLOPT_LOW_SPEED_TIME,30);

 - Jeff
Received on 2007-09-25