From owner-freebsd-current Sat Aug 10 6:43:27 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C95237B400 for ; Sat, 10 Aug 2002 06:43:25 -0700 (PDT) Received: from pump3.york.ac.uk (pump3.york.ac.uk [144.32.128.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF93243E4A for ; Sat, 10 Aug 2002 06:43:23 -0700 (PDT) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from ury.york.ac.uk (ury.york.ac.uk [144.32.108.81]) by pump3.york.ac.uk (8.10.2/8.10.2) with ESMTP id g7ADhM729552 for ; Sat, 10 Aug 2002 14:43:22 +0100 (BST) Received: from ury.york.ac.uk (localhost.york.ac.uk [127.0.0.1]) by ury.york.ac.uk (8.12.3/8.12.3) with ESMTP id g7ADhMv6038251 for ; Sat, 10 Aug 2002 14:43:22 +0100 (BST) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from localhost (gavin@localhost) by ury.york.ac.uk (8.12.3/8.12.3/Submit) with ESMTP id g7ADhMdC038248 for ; Sat, 10 Aug 2002 14:43:22 +0100 (BST) X-Authentication-Warning: ury.york.ac.uk: gavin owned process doing -bs Date: Sat, 10 Aug 2002 14:43:22 +0100 (BST) From: Gavin Atkinson To: Subject: ftpd problem: Input/output error Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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