diff options
| author | Stefan Boberg <[email protected]> | 2026-03-15 12:53:46 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2026-03-15 12:53:46 +0100 |
| commit | 0da02a3e6d13c1626e6422f6d7ead3848036a146 (patch) | |
| tree | 94a6cd36c25df00455a727850fb14d440dc5b0c5 /src/zenutil/zenutil.cpp | |
| parent | Use gathered buffer sequence in TcpLogStreamSink for batched TCP writes (diff) | |
| download | zen-sb/sessionize.tar.xz zen-sb/sessionize.zip | |
Add sequence numbers to log stream protocol and tests for drop detectionsb/sessionize
TcpLogStreamSink now stamps each message with a monotonic sequence number.
LogStreamListener tracks the expected sequence per session and emits a
synthetic "dropped" notice when gaps appear. Includes tests covering
basic delivery, multi-line splitting, drop detection, and contiguous
sequencing. Also simplifies LogMessage::s_DefaultPoint to a single entry.
Diffstat (limited to 'src/zenutil/zenutil.cpp')
| -rw-r--r-- | src/zenutil/zenutil.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zenutil/zenutil.cpp b/src/zenutil/zenutil.cpp index 291dbeadd..9172e3134 100644 --- a/src/zenutil/zenutil.cpp +++ b/src/zenutil/zenutil.cpp @@ -4,8 +4,9 @@ #if ZEN_WITH_TESTS -# include <zenutil/rpcrecording.h> # include <zenutil/config/commandlineoptions.h> +# include <zenutil/rpcrecording.h> +# include <zenutil/splitconsole/logstreamlistener.h> # include <zenutil/wildcard.h> namespace zen { @@ -15,6 +16,7 @@ zenutil_forcelinktests() { cache::rpcrecord_forcelink(); commandlineoptions_forcelink(); + logstreamlistener_forcelink(); wildcard_forcelink(); } |