Subject: experimental ftpd on ftp{,2}.fr.netbsd.org
To: None <current-users@netbsd.org, netbsd-users@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: current-users
Date: 07/26/2002 12:16:45
Hi folks,
I've some experimental code running in the ftpd on ftp{,2}.fr.netbsd.org
to prevent accidental operations in ASCII mode on obviously binary files
(*.gz, *.tgz, *.fs, *.iso):
ftp> asc
200 Type set to A.
ftp> size i386pkg5.iso
550 i386pkg5.iso is a binary file, please switch to BINARY mode.
ftp> get i386pkg5.iso
local: i386pkg5.iso remote: i386pkg5.iso
229 Entering Extended Passive Mode (|||55910|)
550 i386pkg5.iso is a binary file, please switch to BINARY mode.
ftp> bin
200 Type set to I.
ftp> size i386pkg5.iso
i386pkg5.iso 137928704
Please let me know if this cause any problems.
(the primary reason is that some client, under some circunstances, issue
SIZE comands in ascii mode, which on iso image takes a while to complete.
The client time out, reconnects and redo a SIZE. After some hours there
are dozens of ftpd reading the same file as fast as they can, to compute
the size after NL/CR-NL translation).
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
--