Forum Discussion
Collect and process new payload from same TCP session
Hi Guys,
Another noob question. Is there any way for LTM to process subsequent TCP payload after processing the original? Below is the irule related on my first post - load balance by deciding from data on specific position. Say this rule has already been processed or completed, but the remote app sends in another data payload to be processed just the same but maintaining the TCP session, is it possible? A couple of attempts including tcp::collect again after the release, added priorites and others but none worked. Any inputs?
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
use pool2 by default
pool Pool1
set mero [TCP::payload]
log local0. $mero
Start reading at the 5th byte and save 6 characters to $match
if {[binary scan $mero x5a6 match] == 1}{
log local0. "Matched $match"
if { $match eq "000001" } {
log local0. "For Pool 1"
pool Pool1
} else {
log local0. "For Pool 2"
pool Pool2
}
}
TCP::release
}
Thanks again.
Lez
- nitassEmployeebut the remote app sends in another data payload to be processed just the same but maintaining the TCP session, is it possible?you mean to load balance one clientside tcp connection to different pool member based on payload, don't you?
- rahtoll_74678NimbostratusHi Nitass,
- rahtoll_74678NimbostratusHi Nitass,
- What_Lies_Bene1CirrostratusLez,
- rahtoll_74678NimbostratusHi Steve,
- What_Lies_Bene1CirrostratusI'm no iRules expert but can I recommend a few things;
- rahtoll_74678NimbostratusHi Guys,
- What_Lies_Bene1CirrostratusGlad to hear it. Let us know if the testing isn't successful.
- Lalo_Calvillo_2NimbostratusHello everyone,
- Lalo_Calvillo_2NimbostratusIT WORKSSSSSS.....I found the issue. I was missing the last configuration part for the iRule that includes the following lines:
Recent Discussions
Related Content
* 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