修正对非 uint16_t 序号的支持

This commit is contained in:
wxf 2021-07-17 19:57:14 +08:00
parent 892b2d2ef9
commit ac01dc97af

View File

@ -67,7 +67,7 @@ public:
//过滤seq回退包(回环包除外)
return;
}
} else if (_next_seq_out && seq - _next_seq_out > (0xFFFF >> 1)) {
} else if (_next_seq_out && seq - _next_seq_out > (std::numeric_limits<SEQ>::max() >> 1)) {
//过滤seq跳变非常大的包(防止回环时乱序时收到非常大的seq)
return;
}