ims_243721
Sep 08, 2016Nimbostratus
Irule latency
Hi
I developed irule to inspect session id and perform persistence but calculating time it might take up to 30 seconds to do this, Is there anyway to reduce the time and how can i know reason of this delay because its not related to the box itself
when HTTP_REQUEST {
if { ( [HTTP::method] eq "POST") and
( [HTTP::path] equals "/url") } then {
if { [HTTP::header value "Content-Length"] < 5000 } then {
HTTP::collect 3000
} else {
HTTP::collect 5000
}
}
HTTP::header remove "Accept-Encoding"
}
when HTTP_REQUEST_DATA {
set session [findstr [HTTP::payload] ":sessionID>" 8 "<"]
if { $session ne "" } {
persist uie "$session" 1200
}
}
when HTTP_RESPONSE {
HTTP::collect 5000
}
when HTTP_RESPONSE_DATA {
set session [findstr [HTTP::payload] "" 8 "<"]
if { $session != "" } {
persist add uie $session 1200
}
}