cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_multi_perform call blocked infinitely when netowrk is disconnected

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 19 Jan 2012 13:31:51 +0100 (CET)

On Thu, 19 Jan 2012, Vishakha Vaidya wrote:

> 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.

Something is incorrect with this description. The FTP state machine is not
used while a file is transferring! It _is_ however run immediately before and
immediately after the file is transfered so the hang has to occur in one of
those places.

> Is this issue already been fixed or is there a way to handle this situation
> from client code?

We might have fixed it. I can't see enough details to make me tell for sure.

I don't think the client code can do anything about it. If you provide more
details on when you see this / how to repeat it, we can make sure libcurl
behaves better.

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