Merge pull request #3011 from lucas-clemente/fix-undecryptable-packet-error-handling

check for errors after handling each previously undecryptable packet
This commit is contained in:
Marten Seemann
2021-01-23 19:35:36 +08:00
committed by GitHub

View File

@@ -568,12 +568,12 @@ runLoop:
if processed := s.handlePacketImpl(p); processed {
processedUndecryptablePacket = true
}
}
// Don't set timers and send packets if the packet made us close the session.
select {
case closeErr = <-s.closeChan:
break runLoop
default:
// Don't set timers and send packets if the packet made us close the session.
select {
case closeErr = <-s.closeChan:
break runLoop
default:
}
}
} else if !processedUndecryptablePacket {
select {