cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ftp problem

From: Clemens Gruber <clemens.gruber_at_pqgruber.com>
Date: Wed, 17 Jul 2013 18:38:42 +0200

>
> I've tried really hard to repeat this problem locally but failed. But I've now written a test case 1414 that is an attempt to mimic your case and problem (just pushed to git). While it doesn't fail like for you, it does offer an interesting log to compare with...
>
> In your log, everything seems fine up to the point it logs:
>
> "Connection accepted from server" (logged by the AcceptServerConnect() function)
>
> ... as then it in the line after switches from STOP to RETR_TYPE and I really don't understand why. Can you figure it out? I think the AcceptServerConnect() function that detects the connection there is called from within the ftp_do_more() function.
>
> In a successful case it shouldn't move the state machine any further as it should now instead transfer data.
>

I added more logging statements, to find out why and where it switches from STOP to RETR_TYPE:
https://gist.github.com/clemensg/6022039

I am not sure, why the process of setting the TYPE and querying the SIZE is repeated. I hope you get a clue on what’s going on..

Thanks.

Clemens

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-07-17