Forum Discussion
cmoates
Nimbostratus
Jun 09, 2008Keeping a hash's size in check
Hey there,
It is entirely possible that I'm approaching this problem the wrong way, and if so, I'll take any guidance on another solution to the problem. So with that said, here's my problem:...
The_Bhattman
Nimbostratus
Jun 09, 2008Have you considered creating an when CLIENT_CLOSED event to keep the ::user HASH in check.
For Example:
when CLIENT_CLOSED {
if { [info exists ::users($clientip)] } {
incr ::users($clientip) -1
if { $::users($clientip) <= 0 } {
unset ::users($clientip)
}
}
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