BUG/MINOR: listener: keep accept rate counters accurate under saturation
authorWilly Tarreau <w@1wt.eu>
Mon, 25 Feb 2019 14:02:04 +0000 (15:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 27 Feb 2019 07:03:41 +0000 (08:03 +0100)
commit741b4d6b7aad1e4a66dd8584b5eff729b08fade7
tree4e0c709c8b8123859e6e741803c0982e3afdea54
parent12a718488a91810bfdead2aa59d751a92fe7a080
BUG/MINOR: listener: keep accept rate counters accurate under saturation

The test on l->nbconn forces to exit the loop before updating the freq
counters, so the last session which reaches a listener's limit will not
be accounted for in the session rate measurement.

Let's move the test at the beginning of the loop and mark the listener
as saturated on exit.

This may be backported to 1.9 and 1.8.
src/listener.c