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

+2
View File
@@ -50,6 +50,8 @@ Two V2 clients are configured on every reflector:
A satellite server is enabled on reflector-a (port 5303, secret `sat_secret`).
All test configs have `TRUNK_DEBUG=1` enabled for verbose trunk logging during test runs.
### Port Mapping
| Reflector | Client (TCP+UDP) | Trunk (TCP) | HTTP | Satellite |
+1
View File
@@ -24,6 +24,7 @@ def generate_reflector_conf(name: str) -> str:
f"CLUSTER_TGS={cluster_str}",
f"TRUNK_LISTEN_PORT={T.INTERNAL_TRUNK_PORT}",
f"HTTP_SRV_PORT={T.INTERNAL_HTTP_PORT}",
"TRUNK_DEBUG=1",
"",
"[SERVER_CERT]",
f"COMMON_NAME={T.service_name(name)}",