rejetto forum

How can I limit user to 5 connections per file?

Novox · 9 · 2989

0 Members and 1 Guest are viewing this topic.

Offline Novox

  • Occasional poster
  • *
    • Posts: 84
    • View Profile
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!



Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
ensure the "prevent leeching" option is enabled.
it will bound every user to download a file using a single connection. it should be enough.


Offline Novox

  • Occasional poster
  • *
    • Posts: 84
    • View Profile
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!


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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.


Offline Novox

  • Occasional poster
  • *
    • Posts: 84
    • View Profile
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?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
yes, you can

[download]
{.if| {.{.current downloads by user.} > 5.} |{: {.disconnect.} :} .}


Offline Novox

  • Occasional poster
  • *
    • Posts: 84
    • View Profile
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!


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
i can easily make a command to count connections on the same file