Forum Discussion
Alan_Sha
Nimbostratus
Sep 02, 2005How can I trigger a CLIENT_DATA event manually?
I have an iRule that breaks out the client transactions coming from TCP socket and forwards them to different servers based on the content of each request.
The TCP client is working in an a...
Alan_Sha
Nimbostratus
Sep 02, 2005Thanks! 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?
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