Forum Discussion
Alan_Sha
Sep 02, 2005Nimbostratus
Thanks! I have read that posting before and written similar codes in SERVER_DATA and USER_RESPONSE event. Below is what I am using:
when SERVER_DATA {
log local0.debug "Received SERVER response ... [TCP::payload]"
if { [TCP::payload] ends_with $EOT } {
set detachFromSvr 1
} else {
set detachFromSvr 0
}
TCP::release
TCP::collect
TCP::notify response
}
when USER_RESPONSE {
log local0.debug "Received USER response ... "
if { $detachFromSvr equals 1 } {
LB::detach
log local0.debug "Detaches server connection ... "
set detachFromSvr 0
}
}
I have tried to call TCP::notify response or TCP::notify request in USER_RESPONSE right after LB::detach is called, but it makes no difference.
What actually happens when those two commands are called?