fix a bug in process ack

pull/215/head
v2ray 9 years ago
parent 63390786ed
commit b50671f041
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -278,7 +278,8 @@ func (this *SendingWorker) FindFirstUnacknowledged() {
// @Private // @Private
func (this *SendingWorker) ProcessAck(number uint32) { 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 return
} }

Loading…
Cancel
Save