cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: LibCurl Hang when download job disturbed by network interface down

From: ±¦Öì <zhubaozhong2005_at_gmail.com>
Date: Wed, 14 Jul 2010 13:37:57 +0800

CURLOPT_CONNECTTIMEOUT is only for connection phase I think.

2010/7/14 Xu, Qiang (FXSGSC) <Qiang.Xu_at_fujixerox.com>

> > -----Original Message-----
> > From: curl-library-bounces_at_cool.haxx.se
> > [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
> > Sent: Wednesday, July 14, 2010 12:41 PM
> > To: curl-library_at_cool.haxx.se
> > Subject: Re: LibCurl Hang when download job disturbed by
> > network interface down
> >
> > If the network interface comes back up with a new address,
> > then the existing connection will no longer be able to
> > continue and it will eventually time out (which could take 20
> > minutes). If the interface comes back with the same address
> > as before, the transfer ought to resume within a few seconds
> > or at most a few minutes. You can use the
> > CURLOPT_LOW_SPEED_LIMIT and CURLOPT_LOW_SPEED_TIME options to
> > force an abort more quickly than TCP would normally do it,
> > and/or just retry the transfer (an equivalent to the curl
> > tool's --retry option) to redo the transfer once it fails.
>
> Not sure if the option CURLOPT_CONNECTTIMEOUT would help or not.
>
> Regards,
> Xu Qiang
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-07-14