Forum Discussion
Bruno_Esteves_2
Nimbostratus
Apr 13, 2017iRule - Sliding window
Dears,
I'm trying to include a sliding window of time to counting requests. (e.g. if I have 8 req in 60 sec, block for 600 sec.)
So, I did change ($static::timeout $static::timeout) to ($static::...
Stanislas_Piro2
Cumulonimbus
Apr 14, 2017Hi,
don't change static variables in HTTP_REQUEST event... static variables are variables shared by all TMM
static variables may be set in RULE_INIT (when irule is loaded : restart of appliance or code change)
when RULE_INIT {
set static::maxRate 8
set static::timeout 600
}then use the variable in HTTP_REQUEST.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects