[4526] in Athena Bugs

home help back first fref pref prev next nref lref last post

ftp hash mark printing

daemon@ATHENA.MIT.EDU (John Carr)
Wed Mar 14 23:53:20 1990

To: bugs@ATHENA.MIT.EDU
Date: Wed, 14 Mar 90 23:53:07 EST
From: John Carr <jfc@ATHENA.MIT.EDU>

ftp lies about printing hash marks:

	ftp> hash
	Hash mark printing on (1024 bytes/hash mark).
	ftp> get byteunix.tar.Z
	200 PORT command successful.
	150 Opening BINARY mode data connection for byteunix.tar.Z (95233 bytes).
	################################################################################################################################################################################
	226 Transfer complete.
	local: byteunix.tar.Z remote: byteunix.tar.Z
	95233 bytes received in 46 seconds (2 Kbytes/s)
	ftp>

If sendmail was feeling nice today, you will see 176 hash marks above, which
is not even close to (95233 / 1024).  The code at
/source/bsd-4.3/common/ucb/ftp/ftp.c:460-480 prints a hash mark each time
read returns > 0.  If the other end of the connection is sending in blocks
smaller than BUFSIZ, ftp will print a hash mark more often than once per
1024 bytes (our implementation of TCP will return partial reads as the data
becomes available).


home help back first fref pref prev next nref lref last post