Re: state of the cdrom mirrors report
Joey Hess <joeyh@debian.org> writes:
> A few places have question marks; this is where the file exists, but
> seems to have the wrong size. I think some/all of those are really ok,
> and are due to weirdness in the ftp SIZE command on some servers.
It may be that those servers are functioning correctly. Does you
client do something like $ftp->type("I"); to ask for non-translated
files?
ftp.fi.debian.org was one of the mirrors reporting weird size, so I
did some testing. Here is a transcript:
ftp> ls
229 Entering Extended Passive Mode (|||60002|)
150 Opening ASCII mode data connection for '/bin/ls'.
total 4907684
-rwxr-xr-x 1 deb deb 797 Jul 20 19:41 MD5SUMS
-rwxr-xr-x 1 deb deb 612171776 Jul 20 19:31 debian-30r0-i386-binary-1.iso
ftp> size debian-30r0-i386-binary-1.iso
debian-30r0-i386-binary-1.iso 614780752
ftp> bin
200 Type set to I.
ftp> size debian-30r0-i386-binary-1.iso
debian-30r0-i386-binary-1.iso 612171776
When the type was set to binary, the response came immediately and was
correct. Before that, the command took a long time to complete, and I
noticed that the ftpd was taking all the CPU time it could get. I did
not check the sources, but I bet it was doing the line end translation
for ascii mode.
--
Heikki Vatiainen * hessu@cs.tut.fi
Tampere University of Technology * Tampere, Finland
Reply to: