Re: [ECOS] Help with validation of FTP client for LwIP

Lambrecht Jürgen <[email protected]>
Newsgroups gmane.os.ecos.devel
Message-ID <[email protected]>
On 05/18/2011 07:18 AM, Elad Yosef wrote:
>
> Hi,
> I have ported the FTP client to work with LwIP and I want to 
> contribute it.
> The Client supports only IPv4
> The hostname must be the IP address of the server.
> The temporary buffer is allocated on the calling thread stack.
>
> temporary buffer size and the data port are configurable
>
> 1- Where should I post the file?
>
try ecos-devel
>
> 2 - I Did some tests on it and I found some problems that I think come
> from the IP stack:
>
> The Client IP is 192.168.1.222
> The Data port on client side is 20
> The FTP server is FileZilla on Windows
> I also tested with port 1030 and I get the same result
>
> - Get_File() one after another  – Failures from second try and on
> The FTP Server reports:  425 Can't open data connection.
> And The client is blocked on the accept() in receive_file()
>
maybe socket problem. Then increase the max. no. of sockets (no. of file 
descriptors)
there is now a more recent post of Stanislav Meduna
>
> - Put_File() one after another – constant errors
> The FTP Server reports: 426 Connection closed; transfer aborted.
> The client gets transfer failed, but not blocked
>
> - Get_File() and then Put_File()
> The Get passes
> The Put - fails
> The FTP Server reports: 425 Can't open data connection.
> And The client is blocked on the accept() in send_file()
>
> - Put File() and then Get File()
> The First Put fails with  426 Connection closed; transfer aborted.
> The First Get passes
> Second Put fails
> The FTP Server reports: 425 Can't open data connection.
> And The client is blocked on the accept() in send_file()
>
> The Result of the Put File is corrupted file (832 bytes and not 1008)
> Note that the client is blocked on the accept() even after the FTP
> server dropped the connection due to Time-Out
> I applied O_NONBLOCK attribute on the data_s and the result is the
> same (don’t think it works at all)
>
> Elad
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>


-- 
Jürgen Lambrecht
R&D Associate
Tel: +32 (0)51 303045    Fax: +32 (0)51 310670
http://www.televic-rail.com
Televic Rail NV - Leo Bekaertlaan 1 - 8870 Izegem - Belgium
Company number 0825.539.581 - RPR Kortrijk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.