EricRs_201906
May 22, 2015Nimbostratus
iRule: Adjust idle timeout for 1 particular call
Hello,
I had a few questions if anyone has implemented or tried this I know there's a wiki link for it, link, However I wanted to know if the sample request would open the idle time out for ALL requests to the box during that window we set or if it will only set for that one request and all subsequent calls after will be set to the default of 300 seconds.
Also would it help if we added an elseif? if so would that then terminate the request that's already in process of the call?
sample code(s) is as such
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/portal" } {
IP::idle_timeout 7200
}
}
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/portal" } {
IP::idle_timeout 7200
}
else {
IP::idle_timeout 300
}
The use of "else" clause is good for visibility reasons. Admin does not have to check the settings inside a TCP profile to know what the TO value is for all other requests.
For efficiency, I recommend using a comparison against
, instead of your current[string tolower[HTTP::path]] starts_with
statement.[HTTP::uri] starts_with