cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: may i change the time of CURLE_OPERATION_TIMEDOUT

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 16 May 2011 11:10:15 +0200 (CEST)

On Mon, 16 May 2011, belle wrote:

> i use the libcurl to download the mp4 file, but when the network is
> not good,i found it need to use about 60 seconds to abort the connect
> status(the connect is completed, and it had been download some datas,
> but after a while there is no data), and the return response reason is
> 28 CURLE_OPERATION_TIMEDOUT, i want to know if i can change the time to
> wait, or i can set an option to make the curl abort immediately when the
> network is not good?

There are several different timeout options for libcurl and additionally you
can abort the operation using the callbacks at your own will as well.

"when the network is not good" is not a detectable situation as there's no
definition for such a network.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-16