Forum Discussion
Stewart_Mann_11
Sep 01, 2005Historic F5 Account
Accumulate function
Hi
I have a v4.5 iRule using 'accumulate' that needs
to be upgraded to v9.1.
this is the rule:
}
else if (http_content_collected < 20) {
...
unRuleY_95363
Sep 02, 2005Historic F5 Account
Since v9 is event driven the new equivalent is to simply reissue another TCP::collect in the CLIENT_DATA event.
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
if { [TCP::payload length] < 20 } {
TCP::collect
} else {
...
}
}You can equivalently tell it to collect at least 20 bytes to begin with:
when CLIENT_ACCEPTED {
TCP::collect 20
}
when CLIENT_DATA {
if { [TCP::payload] contains "foo" } {
...
}
}Hope this helps!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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