Add TRUNK_DEBUG option for verbose trunk connection diagnostics

Add TRUNK_DEBUG=1 config option in [GLOBAL] that enables detailed
logging of trunk connection lifecycle: state on connect/disconnect,
heartbeat countdown warnings near timeout, every non-heartbeat frame
with direction and type, send path decisions, and prefix matching
details on the trunk server. Helps diagnose connection issues
reported in #1 where the remote side kills connections.
This commit is contained in:
Audric committed 2026-04-05 11:55:43 +02:00
1 parent 9c359ba507
commit 638d3c527e
8 files changed
+186 -2

No files matched your search

@@ -94,6 +94,7 @@ CERT_CA_HOOK=@SVX_SHARE_INSTALL_DIR@/ca-hook.py
#
#LOCAL_PREFIX=1
#TRUNK_LISTEN_PORT=5302
#TRUNK_DEBUG=0 # verbose trunk logging (high log volume — disable after diagnosis)
#[TRUNK_2]
#HOST=reflector-b.example.com