Forum Discussion
abeny_894
Nimbostratus
Nov 30, 2008Session can't release
Dears,
I have got the iRules for session control the HTTP request from customer. However I found that the counter sometimes can't release after OVER the said limit even the iRules con...
Colin_Walker_12
Dec 02, 2008Historic F5 Account
It would look almost identical to what you have now. You'd just add a counter value under the HTTP_REQUEST section that's used and then emptied in the CLIENT_CLOSED event.
Something like:
when HTTP_REQUEST {
incr requestCount -1
...
And then in your client closed section, instead of incrementing by -1, you'd increment by $requestCount.
when CLIENT_CLOSED {
log local0. "site $site request closed"
if { $site == "a" } {
incr ::total_active_clients_a $requestCount
set requestCount 0
if { $::total_active_clients_a <= 0 } {
set ::total_active_clients_a 0
}
...
That way you're always decrementing the "total_active_clients" value by the number of requests that were put through on this connection.
Make sense?
Colin
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