Oscam1.20 svn7826
- Changeset [7826] by avs1978
Revised the code for ratelimit and cooldown functionality. Small speedup in finding available slots.
in oscam.server for a reader
cooldown value1, value2
both values are mandatory and should be both not 0 or smaller
both are in seconds
value1 is cooldowndelay, this delay time is a period in seconds,
for which the reader is allowed to do more ecm request than ecmratelimit
value2 is cooldowntime, is the time the reader needs to cooldown and
the number of ecm request are not more than ecmratelimit
there are three cooldown phases:
cooldown state 0: the number of ecm requests are not more than ecmratelimit
cooldown state 2: number of ecm requests have exceeded ecmratelimit for are time period less than cooldowndelay
cooldown state 1: after cooldowndelay time, the number of requests are exceeding ecmratelimit
thanks Azo_Alex