Forum Discussion
Deb_Allen_18
Aug 31, 2006Historic F5 Account
Clearing connections in RULE_INIT
Is there any way to clear all existing connections on the virtual server in RULE_INIT event?
I'm trying to create a rule that compares client connections to available servers, using a global variable for the connection counting and active_members to get a count of available servers, but I can see that the comparison become accurate if the rule is re-initialized with client connections still active.
I know it's not pretty, and may have other unintended side effects, so I'm open to feedback & alternative suggestions...
thanks!
/deb
1 Reply
- unRuleY_95363Historic F5 AccountNope, sorry.
Also, RULE_INIT is only evaluated when the rule is initially loaded or subsequently changes.
About all I could think of would be to create a global variable containing something like a generation id. Then on any subsequent traffic, if the client's version of the generation id did not match the global version, you could close the connection.
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
