ramann_75062
Sep 26, 2010Nimbostratus
Bug in HTTP::request_num in combination with "pool" copmmand?
Hi@all,
i try to implement an irule for session limitation. My template: "http://devcentral.f5.com/Wiki/default.aspx/iRules/HTTPSessionLimit.html"
The rule is based on:
if {[HTTP::request_num] == 1}{
incr ::total_active_clients }
and
if {$::total_active_clients > 0} {
incr ::total_active_clients -1
log local0. "Session abgebaut...ID:$client_id..."
}
This works fine.
But when is have an
if {[HTTP::uri] starts_with "/vorverkauf" } {
pool tixx-www-pool-cc }
else { pool $myPool
}
active, then " incr ::total_active_clients 1" counts to the max value, then when a session is closed, then "incr ::total_active_clients -1", but it never do "incr ::total_active_clients 1" again and "::total_active_clients" will stay on zero.
Any ideas?
Thanks
Bjoern