collinz1_17223
Jan 18, 2011Nimbostratus
iRule using findstr in TCP payload
I am trying to create an irule that will search the TCP response from a server for the userData: value and them persist based on that. The irule is below, which i have associated with a Universal persistence profile, but when i try to initiate a connection, no connection is being established to one of the load balanced servers. If i remove the persistence profile i am load balanced fine:
when SERVER_CONNECTED {
TCP::collect 1500
}
when SERVER_DATA {
set usrid [findstr [TCP::payload] "userData:" 9]
if {$usrid ne ""} {
persist uie $usrid
}
}