Subject Re: Classic and Servicec API in 2.1
Author ainpoissee
--- In firebird-support@yahoogroups.com, Dmitry Yemanov <dimitr@...>
wrote:
>
> ainpoissee wrote:
> >
> > Does that mean that the API which
> > is used to return the number of currently connected users now
> > also returns the correct number with classic?
>
> No, it doesn't.

Is there a plan to fix it (should I add request to the tracker)?
IMHO the current implementation is so useless (doesn't provide any
information to the user) that it should considered to be a bug...

I use it to limit the number of concurrent users. Obviously, right now
users can "work around" of our licence using classic server...

I guess that with 2.1 it would now be possible to use database
triggers and RDB$[GET | SET]_CONTEXT functions to keep track of logged
in users myself... but would it be safe (ie when the client crashes
would the ON DISCONNECT trigger fire so that the logged in user count
can be decremented)?


TIA
ain