rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Novox on December 25, 2008, 01:41:43 PM

Title: How can I limit user to 5 connections per file?
Post 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!

Title: Re: How can I limit user to 5 connections per file?
Post by: rejetto on December 27, 2008, 12:10:57 AM
ensure the "prevent leeching" option is enabled.
it will bound every user to download a file using a single connection. it should be enough.
Title: Re: How can I limit user to 5 connections per file?
Post by: Novox on December 27, 2008, 03:10:04 PM
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!
Title: Re: How can I limit user to 5 connections per file?
Post by: rejetto on December 27, 2008, 03:17:47 PM
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.
Title: Re: How can I limit user to 5 connections per file?
Post by: Novox on December 27, 2008, 05:58:42 PM
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?
Title: Re: How can I limit user to 5 connections per file?
Post by: rejetto on December 28, 2008, 02:15:14 AM
yes, you can

[download]
{.if| {.{.current downloads by user.} > 5.} |{: {.disconnect.} :} .}
Title: Re: How can I limit user to 5 connections per file?
Post by: Novox on December 28, 2008, 07:06:56 AM
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!
Title: Re: How can I limit user to 5 connections per file?
Post by: rejetto on December 28, 2008, 11:25:32 AM
i can easily make a command to count connections on the same file
Title: Re: How can I limit user to 5 connections per file?
Post by: rejetto on December 28, 2008, 02:24:35 PM
available in next build