Forum Discussion
Willy
Nimbostratus
Feb 09, 2016TCL error :Prerequisite operation not in progress (line ...
I have an iRule that looks like this :
when HTTP_REQUEST {
if {[HTTP::path] eq "/"} {
HTTP::uri "/newpath"
pool website-pool}
}
It seems to do his job, but sometimes the next error appear...
Willy
Nimbostratus
Feb 19, 2016It did not do the trick, however after some extra testing I was able to avoid the TCL error. The solution was to disable HTTP:class before disabling HTTP. The order seems real critical. The rule looks now like below.
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/partinsert"} {
if { [string tolower [HTTP::header Upgrade]] contains "websocket" }{
log local0. "websocket detected"
HTTP::class disable
HTTP::disable
}
}
else {
HTTP::uri "/partinsert[HTTP::uri]"
}
}
Thank you all for helping me to get to this solution. Should you have remarks on the last solution, let me know.
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
