]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] session: limit the number of analyser loops
authorWilly Tarreau <w@1wt.eu>
Thu, 7 Jan 2010 23:32:27 +0000 (00:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 7 Jan 2010 23:36:57 +0000 (00:36 +0100)
commite34070e1be8f7ae7c70f3c00f904bef6ad755aad
treedda7e698a48eb6a53fc86cc15436e33e9643e3c2
parent065e8338e863aae0395fb385eca7eb3dfcb4a945
[MEDIUM] session: limit the number of analyser loops

The initial code's intention was to loop on the analysers as long
as an analyser is added by another one. [This code was wrong due to
the while(0) which breaks even on a continue statement, but the
initial intention must be changed too]. In fact we should limit the
number of times we loop on analysers in order to limit latency.
Using maxpollevents as a limit makes sense since this tunable is
used for the exact same purposes. We may add another tunable later
if that ever makes sense, so it's very unlikely.
src/session.c