Browse Source

increase kcp ack frequency

Darien Raymond 9 years ago
parent
commit
7a09fcdc2f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      transport/internet/kcp/receiving.go

+ 1 - 1
transport/internet/kcp/receiving.go

@@ -102,7 +102,7 @@ func (this *AckList) Flush(current uint32, rto uint32) {
 		if this.nextFlush[i] <= current {
 		if this.nextFlush[i] <= current {
 			seg.PutNumber(this.numbers[i])
 			seg.PutNumber(this.numbers[i])
 			seg.PutTimestamp(this.timestamps[i])
 			seg.PutTimestamp(this.timestamps[i])
-			this.nextFlush[i] = current + rto/2
+			this.nextFlush[i] = current + rto/4
 		}
 		}
 	}
 	}
 	if seg.Count > 0 {
 	if seg.Count > 0 {