Forum Discussion
Martin_Robbins
Nimbostratus
Jul 02, 2014ACCESS::disable in iRule with persisted HTTP/1.1 connection fails
Hello,
I know I should open a case but has anyone seen with 11.4.1 issues with APM using the ACCESS::disable in an iRule causing the dreaded :
http_process_state_prepend - Invalid action EV_BO...
Martin_Robbins
Nimbostratus
Jul 23, 2014Hi,
Thanks but that was "too late", the connection has been reset before it gets to a close statement.
I will share the basic version of the solution I am now using, basically allow if there is a valid session and force client connection close on all other types of requests ...
when HTTP_REQUEST {
set f_apmdisable_close 0
if { [HTTP::cookie exists MRHSession] and [ACCESS::session exists -state_allow -sid [HTTP::cookie value MRHSession]] }{ return
} elseif { [HTTP::cookie exists MRHSession] }{ set f_apmdisable_close 1 }
if { [HTTP::path] starts_with "/public/" }{
WEBSSO::disable
ACCESS::disable
set f_apmdisable_close 1 }
}
when HTTP_REQUEST_SEND {
clientside {
if { $f_apmdisable_close }{
if { [HTTP::header exists Connection] }{ HTTP::header remove Connection }
HTTP::header insert Connection Close }
}
}
when HTTP_RESPONSE {
if { $f_apmdisable_close }{
if { [HTTP::header exists Connection] }{ HTTP::header remove Connection }
HTTP::header insert Connection Close }
}The case I opened has not provided any additional help but the code here at least stops the errors and client resets .. I am sure there are improvements to be had.
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
