public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Help with validation of FTP client for LwIP
@ 2011-05-18  8:33 Elad Yosef
  2011-06-07  7:23 ` Lambrecht Jürgen
  0 siblings, 1 reply; 2+ messages in thread
From: Elad Yosef @ 2011-05-18  8:33 UTC (permalink / raw)
  To: ecos-discuss

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?
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()

- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Help with validation of FTP client for LwIP
  2011-05-18  8:33 [ECOS] Help with validation of FTP client for LwIP Elad Yosef
@ 2011-06-07  7:23 ` Lambrecht Jürgen
  0 siblings, 0 replies; 2+ messages in thread
From: Lambrecht Jürgen @ 2011-06-07  7:23 UTC (permalink / raw)
  To: Elad Yosef; +Cc: ecos-discuss, ecos-devel

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

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-07  7:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-18  8:33 [ECOS] Help with validation of FTP client for LwIP Elad Yosef
2011-06-07  7:23 ` Lambrecht Jürgen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).