Subject: ftp now supports transfer rate throttling
To: None <>
From: Luke Mewburn <>
List: current-users
Date: 06/29/1999 22:34:31
i've just committed some modifications to ftp which support
transfer rate `throttling'. here's a sample session, with
ftp ^C-ed at the appropriate points (because i wasn't going to
wait for it to finish at 5k/s :-)

lukem@karybdis 4> ./obj.i386/ftp karybdis:biggun
150 Opening BINARY mode data connection for 'biggun' (65536000 bytes).
 12% |****                                 |  8144 KB   2.66 MB/s  00:20 ETA^C

lukem@karybdis 5> ./obj.i386/ftp -T get,5k,2k karybdis:biggun
Get xfer rate throttle: on; maximum: 5120; increment 2048.
150 Opening BINARY mode data connection for 'biggun' (65536000 bytes).
  0% |                                     | 20480      5.01 KB/s  3:32:41 ETA^C

if, on the above session, we do kill -USR1 on the ftp process, the
rate will jump to 7k/s (5k/s + 2k/s):
  0% |                                     |   179 KB   5.61 KB/s  3:09:23 ETA^C

(it takes a while for the overall KB/s to get to 7KB/s, but by
observation the size of the file increases by 7KB/s now).

i hope this is useful. it doesn't work for ascii mode transfers at the
moment, and whilst i've done a bit of testing, i'm sure there's
probably a bug or two in there. i couldn't test http `transfer-encoding:
chunked' transfers (i couldn't remember a url of a server that does
it), so that might not work either.