mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-01-03 07:19:57 +01:00
Remove out of order check as it is already done by the RX seqbuf
This commit is contained in:
parent
c5a6742260
commit
55b220d14d
|
|
@ -65,12 +65,6 @@ func (s *serialStream) sendOpenClose(close bool) error {
|
|||
func (s *serialStream) handleRxSeqBufEntry(e seqBufEntry) {
|
||||
gotSeq := uint16(e.seq)
|
||||
if s.receivedSerialData {
|
||||
// Out of order packets can happen if we receive a retransmitted packet, but too late.
|
||||
if s.rxSeqBuf.leftOrRightCloserToSeq(e.seq, seqNum(s.lastReceivedSeq)) != left {
|
||||
log.Debug("got out of order pkt seq #", e.seq)
|
||||
return
|
||||
}
|
||||
|
||||
expectedSeq := s.lastReceivedSeq + 1
|
||||
if expectedSeq != gotSeq {
|
||||
var missingPkts int
|
||||
|
|
|
|||
Loading…
Reference in a new issue