Forum Discussion
Jason_130176
Nimbostratus
Oct 14, 2014URL persitance iRule using UIE
I am tring to write an iRule to hash the hostname with CRC and persist all connetions for a specific URL hostname to one server, I am unable to add the uie add command in the HTTP_REQUEST context.
...
What_Lies_Bene1
Cirrostratus
Oct 14, 2014You don't need the square brackets here;
persist uie [$mod]
You could also save a bit of memory like so (I think);
set mod [expr [crc32 [string tolower [HTTP::host]]] % 6]