cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: may i change the time of CURLE_OPERATION_TIMEDOUT

From: Michael Wood <esiotrot_at_gmail.com>
Date: Tue, 17 May 2011 15:39:07 +0200

On 17 May 2011 11:44, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Tue, 17 May 2011, belle wrote:
[...]
>> the function curl_easy_perform is not return and the CURLOPT_WRITEFUNCTION
>> callback is not receive data anymore, that is the callback will be not used
>> anymore, so i can't actively abort the operation, is there any other
>> callback i can use to make the curl_easy_perform return immediately when the
>> network is broken?
>
> Use the progress callback or one of the many timeout options.

Or CURLOPT_LOW_SPEED_LIMIT, CURLOPT_LOW_SPEED_TIME.

-- 
Michael Wood <esiotrot_at_gmail.com>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-17