Forum Discussion
A simple way to unset all variable during Client_CLOSED ?
Hello,
I have a CLOSED_CONNECTION irule at the end of the VS to unset all variables:
Variables are scoped to the connection. After its closed they no longer exist. The only time this is not the case when you create global variables via rule_init. So there is no need to delete these.
3 Replies
- Kevin_Davies
Nacreous
Variables are scoped to the connection. After its closed they no longer exist. The only time this is not the case when you create global variables via rule_init. So there is no need to delete these.
- danielc
Cirrus
Hello Kevin,
Thanks for the answer. Just want to confirm , what you said also apply to " TCP::close " , right?
- Kevin_Davies
Nacreous
TCP::close is triggered at the close of the connection. Right after the processing of any iRule events related to that connection, the variables should no longer exist. A connection is a TCP session defined by quatuple of source-ip:source-port and destination-ip:destination-port.
Recent Discussions
Related Content
* 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