Forum Discussion
Brandon_High_10
Nimbostratus
Dec 23, 2004"detach" command
I'm trying to use the "detach" command in an iRule and receive the following error when entering it:
line 25: [undefined procedure: detach] [detach]
Is there another way ...
Brandon_High_10
Nimbostratus
Dec 23, 2004I'm not trying to use the ONECONNECT::detach. I'm trying to use the detach command listed on p. 13-9 of the LTM_config_guide.pdf:
detach
Discontinues evaluating this iRule event on this connection. However, the iRule continues to run.
In order to keep the rules from being too huge we have split certain features into different iRules. One example is a rule for our intranet. Because some clients will not store cookies that map to a hostname only, there is a rule that turns a hostname into a FQDN. This allows cookie persistance to work. It does this by using a HTTP::redirect, followed by a return.
There are multiple iRules being applied, each with HTTP_REQUEST a handler. The next file begins to be processed and could potentially send another HTTP::redirect (which fails with IE6), or select a different pool, etc. I want all iRule processing for that event to stop after certain conditions. Using return works in a single iRule, but doesn't work with multiple iRules.
The work around that I've come up with is to have a global variable called $FINISHED, which I set to 1 before calling a return. In each of the iRules, the HTTP_REQUEST handler starts with
if { $FINISHED } {
return
} to skip the contents of that file. Obviously this is a kludge to emulate the behaviour of the missing detach command.
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