Forum Discussion
Shu_97237
Jul 12, 2012Nimbostratus
Dispatch messages from a single connection to pool members
Hi, I'm trying to write irules to do message-based load balancing. I am not using SIP/radius/diameter, so cannot use an existing profile. The request messages are all sent over a single TCP...
nitass
Jul 22, 2012Employee
not sure if code is correct. anyway, would you mind trying it? i assume only one message per packet.
[root@ve10:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
binary scan [TCP::payload] @4I len
if {[TCP::payload length] < [expr {8 + $len}]} {
TCP::collect [expr {8 + $len - [TCP::payload length]}]
return
}
TCP::release [expr {8 + $len}]
TCP::notify request
TCP::collect
}
}
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