Forum Discussion
No because you dont need to close connections. Whats the main objective here? Why are you trying to unset variables? If its important to unset variables for your application then use a prefix for ones you need to unset.
An application with seven vars needs to unset four of them. These vars use an underscore prefix so they are _var1 _var2 _var3 _var4 _var5 so the following one line command can be used to unset them.
unset [info vars _*]
If they are not always defined add -nocomplain to the unset command to prevent it logging errors.
Info is a very useful command - Tcl - info (n) (princeton.edu)
Hello Kevin,
-> No because you dont need to close connections. Whats the main objective here?
I am using these in the irule when detecting HTTP 404, 503 and 504
I now understand that " event disable all" is what I need, because, when I have those HTTP status responds, I don't want the rest of the irule to be process, also, because I already use "HTTP::respond" to respond the "error message".
The only problem left here is should I really use the TCP::close when I have "event disable all" after, I guess it is need so that It can release the memory afterward.
Thanks for your explaination.