When people download files from my website, I don't want them to be able to download faster than 300KB/sec per file.
Is there anyway to do this? I'm running IIS 6.0 on Windows Server 2003.
When people download files from my website, I don't want them to be able to download faster than 300KB/sec per file.
Is there anyway to do this? I'm running IIS 6.0 on Windows Server 2003.
Write a script that transfer the data in chunks. After 300KB you wait until 1 seconds is consumed.
You can't limit download speed but you can limit the overall traffic to a particular website:
HTH, Kev
I agree with Horcrux (cant vote it as dont have enough rep)
if the file is less than 300KB, then this wont work, but for large files, then adverage over the course of the whole file download will be 300Kbps...
I'm assuming the idea is like a rapidshare idea, premium users will have full speed downloads?
Also, while one thread(user) is waiting for a second, another thread can be downloading.
Queue the downloads, and only let X amount run at the same time, and your away in a hack!
Within website properties in IIS 6.0 there is a Performance tab and the first setting is Bandwith throttling which allows you to set the maximum bandwidth value in kilobytes per second. It also has this note;
For bandwidth throttling to function, IIS needs to install Windows Packet Scheduler.
I'm guessing using this setting would mean having your downloads on a separate site so you can throttle that but maintain full bandwidth to your normal content.