Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'throttling via FTP' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
throttling via FTP
Authored by: nvdingo on Feb 05, '03 07:52:11PM

if you are using a command line to ftp your files up to any server, check out theman page for ftp

once you have your connection to your server, if you want to limit your upload speed to give your web browser a chance to send out get requests, try this at the ftp prompt
ftp> rate put 8192

the will throttle the rate for outgoing transfers from your machine to 8K/sec
the full list of options for the rate command is:
rate direction [maximum [increment]]
Throttle the maximum transfer rate to maximum bytes/second.
If maximum is 0, disable the throttle.

direction may be one of:
all Both directions.
get Incoming transfers.
put Outgoing transfers.

maximum can by modified on the fly by increment bytes
(default: 1024) each time a given signal is received:

SIGUSR1 Increment maximum by increment bytes.

SIGUSR2 Decrement maximum by increment bytes. The
result must be a positive number.

If maximum is not supplied, the current throttle rates are
displayed.

Note: rate is not yet implemented for ascii mode transfers.

this is from the man page for FTP that ships with 10.2 from the command line, and may not be supported by various others.

Reading the man page for ftpd can be fun too.
For instance some FTP servers support the SITE RATEPUT and SITE RATEGET commands.
If yours does, and you use Dreamweaver MX, then opening the ftp log window from the window menu, allows you to send raw FTP commands IF YOU ARE CONNECTED.
so if you are putting large files with Dreamweaver, and the server you are connecting too supports it, before you tell DW to put the files, go to the ftp log window and type SITE RATEPUT 8k
this will throttle the connection so that you don't overload your outgoing bandwidth. very handy for doing other things while uploading large files.
sure, it takes longer, but at least you can browse the web efficiently while doing it.



[ Reply to This | # ]