rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: Novox on December 25, 2008, 01:41:43 PM
-
Hello Sir,
I would like to know how can I limit the user to create only 5 connections per file? I have tried to used "Max simultaneous......." but not works. I would like to do it like this because when HFS get many request, it will crash.
Thanks in advanced!
-
ensure the "prevent leeching" option is enabled.
it will bound every user to download a file using a single connection. it should be enough.
-
Thanks for your answer but there is no way to give 5 connections per file?
I can't use "Prevent Leeching" because sometime speed for one connection is not using at maximum speed, it need to create more connection to get the maximum speed.
Thanks again!
-
i don't remember if you was the one who already asked this same question a month ago.
i have still some topics to reply.
anyway you can get such limit by using "event scripts".
by putting something like
[download]
if number of connections for this user (or this file?) is greater than 5, than disconnect
this must be translated with macro commands. you'll find a complete list on rejetto.com/wiki
or you can just search this forum, because i posted a similar script in the last 2 months.
-
Yeah, it's me who asked you the similar question about month ago.
But in this topic I mean if I have allowed user to use Download Manager, can I restrict the maximum connection number (part) for the user?
-
yes, you can
[download]
{.if| {.{.current downloads by user.} > 5.} |{: {.disconnect.} :} .}
-
Hi. many thanks for your reply but it's not exactly what I want.
Your event is seem to be limit overall connection to the users. 5 is user can only make a connection with HFS only 5, if more than 5 then disconnect. So, what I need is to limit maximum connections per file. Users can download many file in the same time but with only maximum 5 parts (threads in flashget) per file.
Thanks!
-
i can easily make a command to count connections on the same file
-
available in next build