![]() |
Restricting Download speed on attachements.
At this point in time, if one is to download an attachement from our forums he will be able to use up all of the line as long as his internet connections allows him to.
What i was wondering, is it possibly to put a restriction on mysql attachemnts so that users can only download at say a maximum speed of 30k/s instead of the 200k/s they are getting ? Thanx you |
File attachment.php, at the very end
Replace PHP Code:
PHP Code:
|
hmm nope I was still able to download at higher then 30k/s with that. It just took forever for the download to start that's all. Anyother solutiosn anyone ?
|
oh and BTW at the end of the file i have echo $attachmentinfo[filedata]; not what you posted above
|
Hmm ... what version do you use?
This is for RC2 and worked for me. |
Running vb 2.3.2 Did I post in the wrong section ?
|
Also i do have a vb3 RC2 forum runnign where i just tried that and it was a no go as well.
|
Strange, does work for me. Well then - sorry for the mess.
|
Quickly looking at the code I'd assume it works for images only.
|
Quote:
That's what i assumed as well. Which is not good for me. i need ti to essentially effect all attachements. Any ideas from the gurus here? |
Quote:
PHP Code:
PHP Code:
|
I did that. All it did was make the download take longer to start, but once it started ti downloaded at the top speed it could and not the 30k i had set.
|
Quote:
|
Quote:
Most users have a 100k/s line or higher... I want them to only be able to download my attachements at like 40k or so. Simply because we have files of 5+ megs.. when we have 100 users downloading those files at 100+k/s you can imagine what hapepsn to our line. |
Quote:
|
Quote:
Problem is we are getting bursts as high as 1400kbps and the datacenter is wanting more money. Specially when these bursts are at times consecutive for like 30 minutes. Also because of the high bursts at time the site it self becomes rather slow. While server loads at a minimum. What is happenign is some users are using up all the of the line downloading and leaving nothing or barely nothing for users who are just surfing. causing the site to drag. If i could cap the downloads then it would be equal to all. I have manage to get server side files to download at 40k/s if bigger then 1 meg, however that does not effect mysql attachements. Any help would really be appricated. |
Is this not possible? Such hack?
|
Quote:
maybe its time to find a differnt host with a bigger pipe. >.< |
Quote:
Sorry about that. |
Quote:
The original would only do this with the header which is why it took longer to start. At least check the code to see it's different :rolleyes: |
Quote:
It frees the line so that it can serve other clients. The download speed may still SHOW 200k... but it should take longer than a 200k download. |
All times are GMT. The time now is 11:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|