Forum Discussion

Deb_Allen_18's avatar
Deb_Allen_18
Historic F5 Account
Aug 31, 2006

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
  • unRuleY_95363's avatar
    unRuleY_95363
    Historic F5 Account
    Nope, 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.