Forum Discussion
Jay_Allison_400
Nimbostratus
Nov 15, 2005Brute Force iRule, any more elegant solutions?
So here is the situation. We have some front end servers that connect to some middleware using .net. .net connections stink, as they are always up, are never idle, and spawn new connections when the...
unRuleY_95363
Nov 15, 2005Historic F5 Account
A slightly more elegant way of killing the connections might be:
when CLIENT_CONNECTED {
if { [active_members pool_A] > 0 } {
set cur_server pool_A
} else {
set cur_server pool_B
}
pool $cur_server
}
when SERVER_CONNECTED {
TCP::collect
}
when SERVER_DATA {
if { $cur_server eq pool_B and \
[active_members pool_A] > 0 } {
TCP::close
}
}This is only more elegant in that you don't need to know the IP address.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