Forum Discussion
Roman_80473
Nov 29, 2011Nimbostratus
Redirect to another URL from inside HTTP::REQUEST after timeout detected
Hi guys,
I have setup the timer using the 'after' command inside HTTP_REQUEST which I then cancel in HTTP_RESPONSE. I detect timeout and take node out of the mix. I then need to redirect req...
nitass
Aug 10, 2012Employee
not sure if i catch you correctly. anyway, i am also wondering what context after's script is running is.
for example, when using HTTP::redirect instead of TCP::respond in the following example, i got context error.
send response from BigIP if server does not respond within a specified amount of time
https://devcentral.f5.com/wiki/iRules.after.ashx
/var/log/ltm
Aug 10 15:30:03 local/tmm info tmm[4860]: Rule myrule : Timeout 1000 milliseconds elapsed without server response. 1344583803
Aug 10 15:30:03 local/tmm err tmm[4860]: 01220001:3: TCL error: myrule - Illegal argument. Can't execute in the current context. (line 1) invoked from within "HTTP::redirect "http://www.google.com/""
i think i will open a case to verify unless someone here can give me a shot. :-)
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