diff options
| author | Denys Fedoryshchenko <denys.f@collabora.com> | 2026-04-29 13:38:11 +0300 |
|---|---|---|
| committer | Denys Fedoryshchenko <denys.f@collabora.com> | 2026-05-04 03:09:49 +0300 |
| commit | dd29f19a14a79437928638029bdb43ba1bba8c08 (patch) | |
| tree | 65c8b66a3db3f3188a67709dcac2568737efc3fc /tests/accel-cmd/test_cmd_basic.py | |
| parent | d28a24252f0df8c8babf3a7321f303d3298029fc (diff) | |
| download | accel-ppp-dd29f19a14a79437928638029bdb43ba1bba8c08.tar.gz accel-ppp-dd29f19a14a79437928638029bdb43ba1bba8c08.zip | |
radius: encapsulate server statistics counters
Group the per-server RADIUS statistics in struct rad_server_stat_t under rad_server_t.stat instead of keeping auth, accounting, interim, and failure counters as separate fields on rad_server_t. This keeps the statistics state collected behind one ownership boundary and makes the relationship between the total counters and their rolling accumulators explicit.
Route counter updates through rad_server_stat_*() helpers. Auth, accounting, interim, and server-failure paths no longer open-code individual counter increments and accumulator updates; the update policy now lives in serv.c with the rest of the RADIUS server accounting logic.
Make the CLI show-stat path render from a local snapshot. The displayed totals are loaded with relaxed atomic reads, the rolling one-minute/five-minute values are collected in one place, and the in-flight request/queue counters are copied under the server lock before printing. Future changes to synchronization or accumulator storage can stay inside the snapshot/update helpers instead of leaking into the CLI formatting code.
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Diffstat (limited to 'tests/accel-cmd/test_cmd_basic.py')
0 files changed, 0 insertions, 0 deletions
