Forum Discussion
xiangyang_zhang
Nimbostratus
Apr 21, 2006Read&Write problem
With the irule below, can read-write problem happen ?
rule tls_flag {
when HTTP_REQUEST {
set tlsflg 0
if {[HTTP::method] equals "CONNECT"}{
...
Apr 21, 2006
Variables are shared within the same connection. If you want to use them across sessions, you'll have to reference them in the global namespace.
when HTTP_REQUEST {
set local_var "some value"
set ::global_var "some other value"
log local0. "The local value is $local_var"
log local0. "The global value is $::global_var"
}So, the value in the HTTP_REQUeST_SEND event will be that of the associated HTTP_REQUEST event for that connection.
Be careful about using lots of global variables as they remain resident in memory until the configuration is reloaded.
-Joe
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
