forked from quic-go/quic-go
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:
12
session.go
12
session.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user