BUG/MINOR: stats: Prevent HTTP "other sessions" counter underflows
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 6 Feb 2023 08:23:56 +0000 (09:23 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Mon, 6 Feb 2023 13:04:27 +0000 (14:04 +0100)
commitd97d1d7c7c654d1a9e2e712ac7736420fe2d6ea5
treebd746b529434cf2da447c50d5df952ebe298a43e
parentb7a406ac34990fdde180ce56491a6261e6c90897
BUG/MINOR: stats: Prevent HTTP "other sessions" counter underflows

Due to multithreading concurrency, it is difficult at this time to figure
out how this counter may become negative. This simple patch only checks this
will never be the case.

This issue arrives with this commit:
 "9969adbcdc MINOR: stats: add by HTTP version cumulated number of sessions and requests"
So, this patch should be backported when the latter has been backported.
src/stats.c