Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Aug 2002 14:43:22 +0100 (BST)
From:      Gavin Atkinson <gavin@ury.york.ac.uk>
To:        <current@freebsd.org>
Subject:   ftpd problem: Input/output error
Message-ID:  <Pine.BSF.4.33.0208101431050.38162-100000@ury.york.ac.uk>

next in thread | raw e-mail | index | archive | help

Hi,

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
current.

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
Trying 127.0.0.1...
Connected to localhost.
220 epsilon.ury.york.ac.uk FTP server (Version 6.00LS) ready.
Name (localhost:gavin):
331 Password required for gavin.
Password:
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)
ftp>

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

epsilon# tail -3
/var/log/ftp.log
Aug 10 14:28:28 epsilon ftpd[345]: connection from localhost (127.0.0.1)
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
problem.

Gavin


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0208101431050.38162-100000>