min timeout

pull/314/head
Darien Raymond 2016-11-13 22:29:31 +01:00
parent 0cd9f5165f
commit e72f8a26c8
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 5 additions and 1 deletions

View File

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