Merge pull request #1714 from lucas-clemente/fix-initial-logging

don't log Initial packets in the packet handler map
This commit is contained in:
Marten Seemann
2019-01-07 08:46:03 +07:00
committed by GitHub

View File

@@ -254,11 +254,11 @@ func (h *packetHandlerMap) handleParsedPackets(packets []*receivedPacket) {
// TODO(#943): send a stateless reset
h.logger.Debugf("received a short header packet with an unexpected connection ID %s", p.hdr.DestConnectionID)
break // a short header packet is always the last in a coalesced packet
}
if h.server != nil { // no server set
h.server.handlePacket(p)
if h.server == nil { // no server set
h.logger.Debugf("received a packet with an unexpected connection ID %s", p.hdr.DestConnectionID)
continue
}
h.logger.Debugf("received a packet with an unexpected connection ID %s", p.hdr.DestConnectionID)
h.server.handlePacket(p)
}
}