From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3696 invoked by alias); 7 Jun 2011 07:23:18 -0000 Received: (qmail 3675 invoked by uid 22791); 7 Jun 2011 07:23:17 -0000 X-SWARE-Spam-Status: No, hits=1.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from ip2.televic.com (HELO ip2.televic.com) (81.82.194.222) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 07 Jun 2011 07:22:58 +0000 Received: from SRV-VS06.TELEVIC.COM ([10.0.0.46]) by SRV-VS06.TELEVIC.COM ([10.0.0.46]) with mapi; Tue, 7 Jun 2011 09:22:57 +0200 From: =?Windows-1252?Q?Lambrecht_J=FCrgen?= To: Elad Yosef CC: "ecos-discuss@ecos.sourceware.org" , "ecos-devel@ecos.sourceware.org" Date: Tue, 07 Jun 2011 07:23:00 -0000 Subject: Re: [ECOS] Help with validation of FTP client for LwIP Message-ID: <4DEDD1D0.5050902@televic.com> References: In-Reply-To: user-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2011-06/txt/msg00000.txt.bz2 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=20 > 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 =96 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=20 descriptors) there is now a more recent post of Stanislav Meduna > > - Put_File() one after another =96 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=92t 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 > --=20 J=FCrgen 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