"Peter Cooper" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Peter
>
> There is no need to do your own license counting - Cache 5 gives you
>
> set username=$System.License.GetUserId()
> set count=$System.License.GetLicenceCount(username)
> if count>11 bomb-out
>
> this means that the 12th connection fails
>
> John
> this means that the 12th bombs only allowing 11 concurrent
> connections- so you loose one but avoid your problem
> .....

Hi,
To make use of the 12th LU slot I see 2 possible ways:

1)
Never ever use default LU identifier (typically IP-address)
Select any identifier for your user,
check the available slots for this identifier
[$SYSTEM.License.ConnectionCount(UserIdentifier) ]
Now you may decide.

I personally would just drop the request if count has reached 12. Or do a
retry after some hang, .....

The weak point is: You require at least 1 free license slot to process the
default request until you do a distinct LU assignment. This might be
acceptable if the number of licenses is fairly high. I'd assume with 25
licenses or more this is an affordable overhead.

2)
^%LICENSE contains
$$DeferUserIdentification(switch) ;Defer (switch=1) or automatic (switch=0)

In deferred license mode you have the option to execute some code before
assigning a LU id.
If there is no assignment after a predefined number (~1000) of lines
executed you get punished with a HANG 15 (which is awful long if you wait
for it). Then you get the next junk of lines and the next hang. ...

You have of course to take care of yourself to get identified in time.
Otherwise time goes by ....

HTH
rc�




Reply via email to