From fb4188379ea3f4b92897dc77dfaa3e2aee16032f Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Thu, 9 Oct 2025 20:17:55 +0800 Subject: [PATCH] fix qlogging of the short header payload length (#5365) --- connection_logging.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection_logging.go b/connection_logging.go index 85e832b0..65132914 100644 --- a/connection_logging.go +++ b/connection_logging.go @@ -161,7 +161,7 @@ func (c *Conn) logShortHeaderPacket( }, Raw: qlog.RawInfo{ Length: int(size), - PayloadLength: int(pnLen), + PayloadLength: int(size - wire.ShortHeaderLen(destConnID, pnLen)), }, Frames: fs, ECN: toQlogECN(ecn),