For a few months now I have been seeing the following problems with the
ftpd in current. When transferring a large file, ftpd seems to
consistantly fail after almost all of the file hass been transferred. The
example transcript below shows all but 4096 bytes of a file being
transferred before stopping. This also happens across networks, with
4-stable ftp clients - i am confident that it is the ftp server in

gavin@epsilon:/home/gavin> grep ^ftp /etc/inetd.conf
ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -ll

gavin@epsilon:/home/gavin> ls -l foo
-rw-------  1 gavin  users  31969280 Aug  4 18:19 foo

gavin@epsilon:/home/gavin> ftp localhost
Trying ::1...
ftp: connect to address ::1: Connection refused
Connected to localhost.
220 epsilon.ury.york.ac.uk FTP server (Version 6.00LS) ready.
Name (localhost:gavin):
331 Password required for gavin.
230 User gavin logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> lcd test
Local directory now /usr/home/gavin/test
ftp> get foo
local: foo remote: foo
229 Entering Extended Passive Mode (|||49152|)
150 Opening BINARY mode data connection for 'foo' (31969280 bytes).
 99% |************************************ | 31216 KB    3.25 MB/s    00:09
426 Data connection: Input/output error.
31965184 bytes received in 00:09 (3.25 MB/s)

gavin@epsilon:/home/gavin> ls -l test/foo
-rw-r--r--  1 gavin  users  31965184 Aug  4 18:19 test/foo

epsilon# tail -3
Aug 10 14:28:28 epsilon ftpd[345]: connection from localhost (
Aug 10 14:29:03 epsilon ftpd[345]: FTP LOGIN FROM localhost as gavin
Aug 10 14:29:36 epsilon ftpd[345]: get /usr/home/gavin/foo = 31965184 bytes

As can be seen, the file is 31969280 bytes in size, but ftpd only sends
31963184 bytes. The log file reads the smaller size.

World and kernel are from source supped midnight GMT 10th August. I can
help debug this or provide an account for someone else to look at this


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to