Forum Discussion
Gary_T_31565
Nimbostratus
Jun 19, 2007http_process_state_collect_data - Invalid action EV_FLUSH_PIPELINE during ST_HTTP_STOP_COLLECTING
Hi,
new here. I had a problem with POSTing in my 404 retry script. Basically a asp logon page frooze on submit if any 5* or 4* errors were found on first server. Someone mentioned on retries you need to add the body back on request but did not explain how. So below is cobbled together from examples and it now works!
But I get the error listed in subject line. Any way of resolving this.
Also feel free to say whether I am barking up the wrong tree with my approach.
Thanks
Gary
when CLIENT_ACCEPTED {
set ui_retries 0
}
when HTTP_REQUEST {
set request [HTTP::request]
log "Start test 12 $request"
POST loses body on retry so reattach
if {[HTTP::request] starts_with "POST"}{
set content_length 0
Find lenght of body
if {[HTTP::header exists "Content-Length"]} {
set content_length [HTTP::header "Content-Length"]
}
If the header is missing, use a sufficiently large number
if {$content_length == 0} {
set content_length 4294967295
}
Collect body
HTTP::collect $content_length
}
}
Collects body and appends to request
when HTTP_REQUEST_DATA {
set body [HTTP::payload]
append request $body
log "added payload"
HTTP::release
}
when HTTP_RESPONSE {
if {[HTTP::status] starts_with "5" or [HTTP::status] starts_with "4"} {
set errorno [HTTP::status]
if {$ui_retries < [active_members ui_all_pool]-1} {
incr ui_retries
log "http error $errorno, retrying $ui_retries $request"
HTTP::retry $request
} else {
set errorno [HTTP::status]
log "Max retries exceeded for http error $errorno, Redirecting to OoS page $request"
HTTP::redirect "http://www.xxx.co.uk/warning/LIVEISUNAVAILABLE.htm" }
}
}
- Gary_T_31565
Nimbostratus
heres the log
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