Forum Discussion
unRuleY_95363
Nov 11, 2005Historic F5 Account
I'm still trying to figure out the best way to handle this. One crazy approach would be to attach to the localhost discard port and let the transaction be dumped into that. So, something like this:
when LB_FAILED {
set connRetry [expr {$connRetry + 1}]
if { $connRetry < $maxAttempts } {
log local0.error "Conn. to [IP::server_addr] failed. Retrying..."
LB::reselect
} else {
log local0.error "Max. re-conn. attempts exhausted. Transaction dropped."
node 127.0.0.1 9
}
}
when SERVER_CONNECTED {
if { $connRetry >= $maxAttempts } {
clientside {TCP::respond "$::STX$::ETX"}
LB::detach
}
}