Disconnect inactive users.
 

Disconnect inactive users.

Started by TZB, 02 May, 2012, 11:34:21

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TZB

Hello,
Mutor finally i am up with a limited hub with limited user access allowed at a time so i was thinking is there anyway we can disconnect inactive user after a set period of time,so that other users who are waiting to get in the HUB can connect.

What i was further thinking is can we have a script where we have a Limit for a user implemented but still other users can login and join the network.

Lets' assume we have a user limit to be 10 users.
So the first 10 users connecting to the network will get connected and log in as normal user using the complete access to share,download,upload,main chat.
users getting connected after the first 10 logged users will be in Que at the bottom of the user list waiting for a user to disconnect/logoff or disconnected by the same script due to inactivity for a long time.Once the user is off the next user in que gets automatically reconnected with his nick and and take the place of the disconnected user.

The users in que can still have a main chat access so that they can request for a user slot.

Hope i did explain properly.
Regards.
TZB

bastya_elvtars

Everything could have been anything else and it would have just as much meaning.

TZB

LOL am so sorry,

I meant like users who are Idle like not uploading or downloading or using main chat.

bastya_elvtars

You cannot tell whether a user is uploading or downloading. The hub is only aware of connection attempts between users, the download & upload go directly between them.
Everything could have been anything else and it would have just as much meaning.

TZB

so if there is no connection attempt made for like 60 minutes can the user be disconnected?

bastya_elvtars

And what if he has been downloading/uploading for that time continously. You can never tell. For instance, if I make a connection attempt at 10AM, the hub will know nothing what happened afterwards. Moreover, this can easily be avoided by downloading a filelist every hour.
Everything could have been anything else and it would have just as much meaning.

TZB

Very True.
actually i and mutor were talking about the same script he has something up his mind and will be giving it a try lets wait and see i guess but this would be a good point to add on and think about.

+1 bastya_elvtars

TZB

I think this is the end for this thread as the project will not be discussed any further as we are all fighting for some libs and cannot come on mutual grounds.

Thanks for your effort bastya_elvtars.

bastya_elvtars

I'm sorry I could not help. I was thinking of different solutions, but none of them was bulletproof.
Re libs: I do not want to take part in this debate.
Everything could have been anything else and it would have just as much meaning.

SMF spam blocked by CleanTalk