BUG/MINOR: ssl: use atomic ops to update global shctx stats
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Jun 2021 14:39:22 +0000 (16:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Jun 2021 14:52:07 +0000 (16:52 +0200)
commit4c19e996218f6c205c1716a0b4718f9bced7f893
tree8794a53e85287efe46983edc0f3a61c470597f2c
parent9e467af804b3dfa05eaa4677644f5ff0c0e0619f
BUG/MINOR: ssl: use atomic ops to update global shctx stats

The global shctx lookups and misses was updated without using atomic
ops, so the stats available in "show info" are very likely off by a few
units over time. This should be backported as far as 1.8. Versions
without _HA_ATOMIC_INC() can use HA_ATOMIC_ADD(,1).
src/ssl_sock.c