feature request: either user.OpenLPFConnectionsCou (General questions)

by rs4u @, (7229 days ago)

feature request: either user.OpenLPFConnectionsCount / user.OpenRPFConnectionsCount or event PortForwardDisconnect

Hi Kreso,

we try to limit the total amount of open connections a user can have to prevent single users from hogging all the servers recources.
Is there a way to retrieve the number of open connctions a user has on the server, preferably separated by local and remote port forwardings (i.e. the user x has 10 open connections using local PF and 7 using remote PF). I think about something alike object.ServicesCount, just for connections.

If there is nothing like this yet - could you either add these two properties to the user object or add an event PortForwardDisconnect (Private Sub object_PortForwardDisconnect(User, KindOfForwarding) so one can count that numbers oneself?

Thank you, Rainer

locked

Re: feature request: either user.OpenLPFConnection

by Jasmine, (7229 days ago) @ rs4u

Rainer,

this looks like a good suggestion. Let me try few things out, check current interface to see how to retrieve these values, or how to extend it so this becomes possible.

locked

Re: feature request: either user.OpenLPFConnection

by rs4u @, (7218 days ago) @ Jasmine

any proceeding, Kreso?

have a great day!
Rainer

locked

Re: feature request: either user.OpenLPFConnection

by Jasmine, (7218 days ago) @ rs4u

Patience, my friend. I got it implemented, just didn't have the time to test yet. I will review it probably today, can send it to you for testing if you wish.

locked

Re: feature request: either user.OpenLPFConnection

by rs4u @, (7218 days ago) @ Jasmine

C'mon, man! Patience is my 2nd name, isn't it? [:cool:]
Just got the guts to ask you about the proceeding - didn't say you're (too) slow or something alike [:smile:].

If you like to send it for testing I'd appreciate it though my tests surely wouldn't outperform yours.


Thanks, Rainer

locked