qlog dropped 0-RTT packets (on the client side)

This commit is contained in:
Marten Seemann
2020-04-07 16:52:02 +07:00
parent 1655768d57
commit a02fb1fa6f
2 changed files with 2 additions and 0 deletions

View File

@@ -769,6 +769,7 @@ func (s *session) handleSinglePacket(p *receivedPacket, hdr *wire.Header) bool /
}
// drop 0-RTT packets, if we are a client
if s.perspective == protocol.PerspectiveClient && hdr.Type == protocol.PacketType0RTT {
s.qlogger.DroppedPacket(qlog.PacketType0RTT, protocol.ByteCount(len(p.data)), qlog.PacketDropKeyUnavailable)
return false
}