Forum Discussion
IheartF5_45022
Mar 14, 2014Nacreous
Queuing traffic in iRules - advisability!!
I posted this codeshare recently which is a pair of iRules which queue requests in front of WAM with the idea being that when they are released the request will be in cache and served from cache http...
IheartF5_45022
Nacreous
Thanks for the update and the link.
So how does an 'after' within a 'while' loop get treated? Does each execution of the 'after' result in connection suspension? Or because the 'after' is being executed within the context of a blocking command (while), does it in itself become blocking?
Will the following code block solidly for up to 120s? Or will it suspend 600 times?
set i 1
while {[table lookup "mytable"] ne "" } {
if {$i > 600} {
Ensure a single request can never keep queuing beyond 600 iterations
break
}
after 200
incr i
}
JRahm
Mar 25, 2014Admin
in this particular case, the after within the while loop parks and so tmm is free to go do its thing.
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