mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-06 21:57:36 +03:00
ignore reordered packets for remote closed sessions
This commit is contained in:
parent
22b12f199e
commit
b8c5ed2a14
3 changed files with 30 additions and 4 deletions
|
@ -954,7 +954,7 @@ func (s *session) closeForRecreating() protocol.PacketNumber {
|
|||
func (s *session) closeRemote(e error) {
|
||||
s.closeOnce.Do(func() {
|
||||
s.logger.Errorf("Peer closed session with error: %s", e)
|
||||
s.sessionRunner.Remove(s.srcConnID)
|
||||
s.sessionRunner.ReplaceWithClosed(s.srcConnID, newClosedRemoteSession(s.perspective))
|
||||
s.closeChan <- closeError{err: e, remote: true}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue