mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
min timeout
This commit is contained in:
parent
0cd9f5165f
commit
e72f8a26c8
@ -102,7 +102,11 @@ 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/4
|
timeout := rto / 4
|
||||||
|
if timeout < 20 {
|
||||||
|
timeout = 20
|
||||||
|
}
|
||||||
|
this.nextFlush[i] = current + timeout
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if seg.Count > 0 {
|
if seg.Count > 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user