Nikos Mavrogiannopoulos
96aa1f5ae7
tests: add reproducer for inflated RADIUS Acct-Session-Time across reconnects
...
A session that reconnects several times under the same cookie (roaming,
DPD, a new-tunnel rekey) currently reports an Acct-Session-Time far
larger than its real duration: each reconnected segment reports uptime
measured cumulatively from the original session start, and sec-mod sums
these cumulative per-segment values instead of taking the final one.
Add a test that drives three cookie-resumed segments (simulating
reconnects via SIGKILL, as tests/test-cookie-timeout does, so the
session survives between segments) with idle gaps in between, then
performs a clean final disconnect (SIGTERM), which ocserv reports as an
explicit user disconnect and closes the accounting session immediately.
It checks the Stop record's Acct-Session-Time is close to the real
elapsed wall-clock time rather than the sum of the individual segments'
cumulative uptimes.
This test currently fails against unpatched master.
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com >
2026-07-12 13:55:55 +02:00
..
2026-07-12 10:15:11 +02:00
2026-07-12 10:15:11 +02:00
2026-05-31 14:17:33 +02:00
2026-04-26 21:05:06 -04:00
2021-10-31 22:26:25 +01:00
2022-11-28 11:22:33 +01:00
2026-03-20 20:47:35 +01:00
2026-03-20 20:47:35 +01:00
2026-03-20 20:47:35 +01:00
2026-03-20 20:47:35 +01:00
2023-06-10 16:21:34 +08:00
2021-11-01 10:23:01 +01:00
2026-05-01 19:26:45 +00:00
2026-06-11 15:40:37 +02:00
2023-06-10 16:21:34 +08:00
2026-06-06 08:12:13 +02:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2022-11-28 11:22:33 +01:00
2026-04-23 10:51:26 +02:00
2026-06-17 06:17:05 +02:00
2026-06-17 06:17:05 +02:00
2026-03-29 17:32:16 +02:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2023-06-10 16:21:34 +08:00
2023-06-10 16:21:34 +08:00
2023-06-10 16:21:34 +08:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2024-12-06 12:08:52 +01:00
2026-05-31 14:17:33 +02:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2026-01-07 15:46:16 -05:00
2026-01-07 15:46:16 -05:00
2026-03-22 12:29:59 +01:00
2026-05-19 20:14:21 +02:00
2020-08-09 13:14:22 +02:00
2026-01-07 15:46:16 -05:00
2026-06-11 15:40:37 +02:00
2026-01-07 15:46:16 -05:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2024-12-01 17:01:05 +01:00
2026-05-31 14:17:33 +02:00
2026-01-07 15:46:16 -05:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2026-07-12 13:55:55 +02:00
2023-06-10 16:21:34 +08:00
2026-03-20 20:47:35 +01:00
2026-06-11 15:40:37 +02:00
2023-06-10 16:21:34 +08:00
2023-06-10 16:21:34 +08:00
2026-05-31 14:17:33 +02:00
2026-03-20 20:47:35 +01:00
2026-03-20 20:47:35 +01:00
2026-04-13 22:43:52 +02:00
2026-06-06 08:12:13 +02:00
2026-06-10 20:52:56 +02:00
2023-06-10 16:21:34 +08:00
2026-04-22 20:29:15 +02:00
2026-03-29 17:32:16 +02:00
2026-05-23 14:52:01 +00:00
2026-03-20 20:47:35 +01:00
2026-03-20 20:47:35 +01:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2026-07-12 13:55:55 +02:00
2023-12-29 21:18:28 +01:00
2026-05-31 14:17:33 +02:00
2026-01-11 09:04:18 +01:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2026-03-22 12:29:59 +01:00
2026-03-20 20:47:35 +01:00
2026-01-07 15:46:16 -05:00
2024-12-01 17:01:05 +01:00
2026-06-03 19:52:36 +02:00
2026-03-22 12:29:59 +01:00
2026-03-20 20:47:35 +01:00
2026-03-22 12:29:59 +01:00
2026-03-22 12:29:59 +01:00
2026-05-19 20:11:33 +02:00
2023-06-10 16:21:34 +08:00
2023-06-10 16:21:34 +08:00
2026-03-20 20:47:35 +01:00
2023-07-11 22:48:22 +12:00
2023-06-10 16:21:34 +08:00
2026-06-17 06:04:49 +02:00
2026-06-11 15:40:37 +02:00
2026-06-11 15:40:37 +02:00
2026-03-20 20:47:35 +01:00
2026-06-07 08:29:52 +02:00
2026-03-20 20:47:35 +01:00
2026-03-20 20:47:35 +01:00
2026-06-11 15:40:37 +02:00
2023-06-10 16:21:34 +08:00
2026-03-20 20:47:35 +01:00
2023-06-10 16:21:34 +08:00
2026-05-02 17:21:38 +02:00
2026-03-29 16:55:12 +02:00
2023-06-22 12:29:02 +02:00
2026-07-12 10:15:11 +02:00
2026-06-06 23:41:11 +02:00
2023-06-10 16:21:34 +08:00
2020-08-09 13:14:22 +02:00
2023-06-10 16:21:34 +08:00
2023-06-10 16:21:34 +08:00
2026-05-06 13:54:21 +02:00
2026-05-15 06:42:24 +02:00
2023-06-10 16:21:34 +08:00
2026-03-20 20:47:35 +01:00
2023-06-10 16:21:34 +08:00
2026-03-22 12:29:59 +01:00
2026-06-07 08:29:52 +02:00
2026-03-22 12:29:59 +01:00
2026-06-11 15:40:37 +02:00
2026-05-31 14:17:33 +02:00
2026-04-14 13:26:32 -04:00
2026-03-22 12:29:59 +01:00
2026-03-22 12:29:59 +01:00
2026-03-20 20:47:35 +01:00
2026-04-03 13:58:18 +02:00
2026-03-20 20:47:35 +01:00
2026-05-19 20:11:33 +02:00
2026-05-08 21:00:07 -04:00
2026-06-06 08:12:13 +02:00
2023-06-10 16:21:34 +08:00
2026-04-03 12:29:01 +02:00
2026-04-03 12:29:01 +02:00
2026-02-28 11:46:56 +01:00
2023-06-10 16:21:34 +08:00
2023-06-10 16:21:34 +08:00
2026-03-20 20:47:35 +01:00
2026-06-11 15:40:37 +02:00
2023-06-10 16:21:34 +08:00
2023-07-11 22:48:22 +12:00
2026-05-31 14:17:33 +02:00
2023-06-10 16:21:34 +08:00
2026-03-22 22:54:48 +01:00
2026-05-31 22:32:20 +02:00
2026-06-17 06:04:49 +02:00
2023-06-10 16:21:34 +08:00
2020-08-09 13:14:22 +02:00
2023-06-10 16:21:34 +08:00
2026-06-03 19:52:36 +02:00
2026-06-11 15:40:37 +02:00
2026-04-26 21:05:06 -04:00
2026-03-20 20:47:35 +01:00
2026-04-09 20:20:45 -04:00
2026-05-31 14:17:33 +02:00
2026-06-11 15:40:37 +02:00
2026-01-07 15:46:16 -05:00
2026-04-18 15:51:20 +02:00
2026-06-11 15:40:37 +02:00