cURL / Mailing Lists / curl-library / Single Mail

curl-library

curl_multi_perform call blocked infinitely when netowrk is disconnected

From: Vicky Tux <ssseintr2_at_gmail.com>
Date: Sat, 21 Jan 2012 09:26:28 +0530

This may be due to curl builded without asynchronous name resolver. Cound
you please confirm it have builded with async name resolver..?

For windows it is achieved by threads and others may use thread or ares
library
-vicky

Message: 1
> Date: Thu, 19 Jan 2012 17:08:23 +0530
> From: Vishakha Vaidya <vvaidya_at_adobe.com>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Cc: Nithesh Gangadhar Salian <nsalian_at_adobe.com>, Ajay Poppur Suresh
> <apoppurs_at_adobe.com>
> Subject: curl_multi_perform call blocked infinitely when netowrk is
> disconnected
> Message-ID:
> <
> 17662AEBE3BF104DA85FE410E4BC204BDBB7EB650E_at_INDIAMBX01.corp.adobe.com>
> Content-Type: text/plain; charset="us-ascii"
>
> During curl_multi_perform ( when the file is transferring) if the network
> cable is disconnected, the call is blocked in infinite while loop
> and never terminates. Is this issue already been fixed or is there a way
> to handle this situation from client code?
>
> The below while loop runs infinitely when network is disconnected during
> curl_multi_perform ( during file transfer).
>
> static CURLcode ftp_easy_statemach(struct connectdata *conn)
> {
> struct ftp_conn *ftpc = &conn->proto.ftpc;
> struct pingpong *pp = &ftpc->pp;
> CURLcode result = CURLE_OK;
>
> while(ftpc->state != FTP_STOP) {
> result = Curl_pp_easy_statemach(pp);
> if(result)
> break;
> }
>
> return result;
> }
>
> Thanks
> Vishakha
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://cool.haxx.se/pipermail/curl-library/attachments/20120119/3891ab68/attachment-0001.html
> >
>
> ------------------------------
>
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-01-21