Skip to content

Commit

Permalink
don't log Initial packets in the packet handler map
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jan 5, 2019
1 parent 8ac77be commit 73c4391
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packet_handler_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 73c4391

Please sign in to comment.