1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00

fix a bug in process ack

This commit is contained in:
v2ray 2016-07-12 13:43:25 +02:00
parent 63390786ed
commit b50671f041
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -278,7 +278,8 @@ func (this *SendingWorker) FindFirstUnacknowledged() {
// @Private
func (this *SendingWorker) ProcessAck(number uint32) {
if number-this.firstUnacknowledged > this.window.Size() {
// number < this.firstUnacknowledged || number >= this.nextNumber
if number-this.firstUnacknowledged > 0x7FFFFFFF || number-this.nextNumber < 0x7FFFFFFF {
return
}