Add IRC auto-reconnect and unit tests #4
Loading…
Reference in a new issue
No description provided.
Delete branch "irc-reconnect-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add IRC auto-reconnect and a first unit-test suite.
Changes
irc_thread_mainnow loops, recreating the lirc client per session and retrying with a 3s backoff after a disconnect. Per-connection state (CAP/NICK/USER/join flags) is reset each attempt. Shutdown is signalled via an atomicstopflag +irc_disconnect.irc_send_relaynow checks for a connected client under theio_mumutex, so a relay can't race with session teardown.${VAR}expansion frommain.cintoutil_expand_env()(shared + testable).test/test_util.ccovers the SHA-256 hex hash, grow-append, strlist, env expansion, and mkdir/write helpers, wired intomeson test.Verification
ninja -C build→ 0 warnings; clang-tidy → 0 findings.meson test→ 1/1 passing (slopbridge:util).