This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: ftp client problem : ftp_get fails for large files
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: HG <henri at broadbandnetdevices dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 25 Apr 2003 14:54:06 +0200
- Subject: Re: [ECOS] ftp client problem : ftp_get fails for large files
- References: <000901c30a94$ec160710$0400a8c0@amdk62400>
On Thu, Apr 24, 2003 at 03:08:41PM -0400, HG wrote:
> Hi All
>
> the function ftp_get hangs when files too large (512k)are downloaded
> from a server . Files are downloaded ok when they have size of 256k or less:
> This problem does bear some similarity to the problem reported earlier
> with the tftp_get function.
Yes it does.
Which version of eCos are you using? 2.0beta1? anoncvs?
Another shot in the dark:
Do you have this entry in packages/net/bsd_tcpip/current/ChangeLog:
2003-03-14 Andrew Lunn <andrew dot lunn at ascom dot ch>
* src/sys/net/if.c (if_attach): Removed printf which causes the
ethernet device to become corrupt. At this point the app driver
has started but not completed taking over from the redboot
driver. It is unsafe for redboot to use the ethernet device.
If not, apply this patch:
Index: packages/net/bsd_tcpip/current/src/sys/net/if.c
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/bsd_tcpip/current/src/sys/net/if.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- packages/net/bsd_tcpip/current/src/sys/net/if.c 4 Nov 2002 20:23:25 -000
0 1.2
+++ packages/net/bsd_tcpip/current/src/sys/net/if.c 14 Mar 2003 13:04:05 -00
00 1.3
@@ -194,8 +194,6 @@
}
if (ifp->if_snd.ifq_maxlen == 0) {
- printf("%s%d XXX: driver didn't set ifq_maxlen\n",
- ifp->if_name, ifp->if_unit);
ifp->if_snd.ifq_maxlen = ifqmaxlen;
}
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss