CURLOPT_CONNECTTIMEOUT is only for connection phase I think. 2010/7/14 Xu, Qiang (FXSGSC) <[email protected]>
> > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]] On Behalf Of Dan Fandrich > > Sent: Wednesday, July 14, 2010 12:41 PM > > To: [email protected] > > 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
