cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Program goes into infinite state.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 18 Apr 2012 19:42:58 +0200 (CEST)

On Mon, 16 Apr 2012, Yuvi yuvi wrote:

> I have wifi DD-WRT router that has USB Storage support. I have configured
> that router to support SFTP protocol. My problem is that during downloading
> if somebody removed the USB storage then my sample program to download file
> goes into the infinite state.
>
> Even I have checked with
> http://curl.haxx.se/libcurl/c/ftpgetinfo.htmlexample, but this sample
> program also goes into the infinite state if USB storage is not present
> there.

Then you better use a timeout or something that makes you stop the transfer
after some time.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-18