cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multi interface is broken with active FTP connection

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 26 Oct 2011 16:44:54 +0200 (CEST)

On Wed, 26 Oct 2011, Gokhan Sengun wrote:

> Below is the timestamped output is given for the test program. It is seen
> from here that the problem persists.
>
> http://pastebin.com/0B3Cwepu
> http://pastebin.com/VRqswckA

Thanks for those!

Right, I can see how it happens. Can you try with this little patch and see if
we can fix the gap when DO_MORE is entered until the FTP's state machine is
re-started. I believe that gap is when this timeout occurs...

--- a/lib/multi.c
+++ b/lib/multi.c
@@ -1344,7 +1344,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
              /* we're supposed to do more, but we need to sit down, relax
                 and wait a little while first */
              multistate(easy, CURLM_STATE_DO_MORE);
- result = CURLM_OK;
+ result = CURLM_CALL_MULTI_PERFORM;
            }
            else {
              /* we're done with the DO, now DO_DONE */

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-26