fix qlogging of the short header payload length (#5365)

This commit is contained in:
Marten Seemann
2025-10-09 20:17:55 +08:00
committed by GitHub
parent 8d1b4811c4
commit fb4188379e

View File

@@ -161,7 +161,7 @@ func (c *Conn) logShortHeaderPacket(
}, },
Raw: qlog.RawInfo{ Raw: qlog.RawInfo{
Length: int(size), Length: int(size),
PayloadLength: int(pnLen), PayloadLength: int(size - wire.ShortHeaderLen(destConnID, pnLen)),
}, },
Frames: fs, Frames: fs,
ECN: toQlogECN(ecn), ECN: toQlogECN(ecn),