forked from quic-go/quic-go
trace dropped packets in the packet handler map
This commit is contained in:
@@ -274,6 +274,9 @@ func (h *packetHandlerMap) handlePacket(
|
||||
connID, err := wire.ParseConnectionID(data, h.connIDLen)
|
||||
if err != nil {
|
||||
h.logger.Debugf("error parsing connection ID on packet from %s: %s", addr, err)
|
||||
if h.tracer != nil {
|
||||
h.tracer.DroppedPacket(addr, logging.PacketTypeNotDetermined, protocol.ByteCount(len(data)), logging.PacketDropHeaderParseError)
|
||||
}
|
||||
return
|
||||
}
|
||||
rcvTime := time.Now()
|
||||
|
||||
Reference in New Issue
Block a user