cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Active FTP uploads

From: Patrick Heeb <speedpat_at_gmx.net>
Date: Fri, 09 Jun 2006 09:53:17 +0200

Daniel Stenberg wrote:
> On Fri, 9 Jun 2006, Daniel Stenberg wrote:
>
>> I wrote one now but I'm not seeing any failures with this code
>> against my test ftp server:
>
> Oh, hang on. I _did_ find a bug in the code that I fixed before this
> code ran fine...
>
> Ok, committed now. But this bug I just fixed was introduced with the
> hiper-commit I did back in April but this was never part of 7.15.3 and
> thus is not the reason to your problem if you didn't use a CVS version.
>
I checked out the CVS version and tried your test against my ftp server
(vsftpd 2.0.3 on Debian Sarge).
I only added a timeout of 20s (CURLOPT_TIMEOUT).
The same thing:

ph_at_biochips:~/workspaces/c/curl-src/tests/libtest$ ./lib525
ftp://bast:bast12@legolas//home/bast/lib525 lib525
URL: ftp://bast:bast12@legolas//home/bast/lib525
* About to connect() to legolas port 21
* Expire at 1149838980 / 971794 (20000ms)
* Trying 192.168.2.94... * Expire at 1149838980 / 971933 (20000ms)
* Expire at 1149838980 / 972164 (20000ms)
* Connected to legolas (192.168.2.94) port 21
< 220 Welcome to Legolas FTP service.
> USER bast
< 331 Please specify the password.
> PASS bast12
< 230 Login successful.
> PWD
< 257 "/home/bast"
* Entry path is '/home/bast'
> CWD /home
< 250 Directory successfully changed.
> CWD bast
< 250 Directory successfully changed.
> EPRT |1|192.168.2.224|49719|
< 200 EPRT command successful. Consider using EPSV.
* Connect data stream actively
* Connection time-out after 20010 ms
* Remembering we are in dir /home/bast/
* Uploaded unaligned file size (0 out of 4626 bytes)
* Connection #0 to host legolas left intact
* Closing connection #0
Received on 2006-06-09