Clean license usage on Community Edition
Is there any solution to how to purge the usage of the connection in Community Edition?
I have a working portal, where can't do even any simple SQL Query
.png)
Why? Because somehow I've exceeded a license limit (pardon, connection limit, when it comes to Community Editon)
So, this page shows, 8 users ate all connections
.png)
This page is useless, 0 connections in use
.png)
And this page is useless too, even when I have matches from the usage list, I can do nothing with
.png)
Recently, I posted an idea, to make Community Edition limited by resources, not by connections, it would help a lot, but it's marked as Future Consideration (I read it as, never going to happen). So, please vote for it, if you agree wish it too.
Comments
since the invention of Grace Period by BdK I'm fighting hanging CSP connections.
my approach:
in most cases, it is sufficient to get free locked licenses
Yeah, but unfortunately, in my case, (see the screenshot above) I have no checkboxes at all, so, no control
I see. just Sub-sessions:
If this is your own CSP page you may set %session.EndSession =1
OR
you have a dummy page that does just this and you call it manually
I did it mostly during testing
Hi @Dmitry Maslennikov ,
Yesterday I experienced this kind of problem with web socket.
To limit the license usage, I did this :
Class dc.journalindexer.WebSocket Extends %CSP.WebSocket
{
Method OnPreServer() As %Status
{
Do %session.Login("wsuser",,1)
Set ..SharedConnection = 1
; ... some lines of code
Quit sc
}
Method OnClientMessage(
data As %String = "",
close As %Integer) As %Status
{
; force logout and EndSession on disconnect from client
If $Get(close) = 1 {
Do %session.Logout()
Set %session.EndSession = 1
Do ..EndServer()
}
Quit 0
}
}.png)
.png)
.png)