mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-18 07:17:32 -05:00
more accurate of rtt calculation
This commit is contained in:
parent
d5cd919cec
commit
72ee6436eb
@ -323,7 +323,7 @@ func (this *SendingWorker) ProcessSegment(current uint32, seg *AckSegment) {
|
|||||||
for i := 0; i < int(seg.Count); i++ {
|
for i := 0; i < int(seg.Count); i++ {
|
||||||
timestamp := seg.TimestampList[i]
|
timestamp := seg.TimestampList[i]
|
||||||
number := seg.NumberList[i]
|
number := seg.NumberList[i]
|
||||||
if current-timestamp < 10000 {
|
if current-timestamp < 10000 && number-this.firstUnacknowledged <= 0x7FFFFFFF {
|
||||||
this.conn.roundTrip.Update(current - timestamp)
|
this.conn.roundTrip.Update(current - timestamp)
|
||||||
}
|
}
|
||||||
this.ProcessAck(number)
|
this.ProcessAck(number)
|
||||||
|
Loading…
Reference in New Issue
Block a user