Forum Discussion
Alan_Sha
Nimbostratus
Oct 31, 2005How to keep the client connection when LB_FAILED?
Hi,
I need some help on the following scenario.
I have been maintaining a persistent TCP connection between a client application and Big IP. The client application is sending requ...
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
}
}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