Awkrd1_7470
Jul 22, 2011Nimbostratus
Current connections not dropped when using command:discard
Hello,
I have a simple i-Rule implemented that is not doing what I expect it to do. I would like to discard any current or new connections to the pool (TCP reset) when the pool members <2. What am I missing? Is it possible to send a TCP reset to both client and servers? Do I need to change my event statement?
when CLIENT_ACCEPTED {
Check if the VS's default pool has at least 2 active members
if { [active_members [LB::server pool]] < 2 } {
drop/discard the current connections
discard
}
}
I did turn on logging to verify the new connections are being discarded as I would think they should be, but the existing connections seems to persist and are not disconnected. Any assistance will be appreciated,
Thank you!