fix: kcp 协议内部日志细节

This commit is contained in:
2026-03-25 15:09:32 +08:00
parent be013b701b
commit 665a908421
15 changed files with 1117 additions and 42 deletions

View File

@@ -77,6 +77,9 @@ func assertKCPPacketRecord(t *testing.T, records []KCPPacketDebugRecord, wantEve
if record.KCPConv == nil {
t.Fatalf("record %s missing kcp_conv: %+v", wantEvent, record)
}
if len(record.Segments) == 0 {
t.Fatalf("record %s missing parsed segments: %+v", wantEvent, record)
}
if wantUDPTXID && record.UDPTXID == nil {
t.Fatalf("record %s missing udp_tx_id: %+v", wantEvent, record)
}