Forum Discussion
Willy
Feb 09, 2016Nimbostratus
TCL 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
Feb 19, 2016Nimbostratus
It 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.
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