mirror of https://github.com/v2ray/v2ray-core
fill windows after processing acks
parent
72ee6436eb
commit
066e5e216d
|
@ -317,13 +317,12 @@ func (this *SendingWorker) ProcessSegment(current uint32, seg *AckSegment) {
|
||||||
this.remoteNextNumber = seg.ReceivingWindow
|
this.remoteNextNumber = seg.ReceivingWindow
|
||||||
}
|
}
|
||||||
this.ProcessReceivingNextWithoutLock(seg.ReceivingNext)
|
this.ProcessReceivingNextWithoutLock(seg.ReceivingNext)
|
||||||
this.FillWindow(current)
|
|
||||||
|
|
||||||
var maxack uint32
|
var maxack uint32
|
||||||
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 && number-this.firstUnacknowledged <= 0x7FFFFFFF {
|
if current-timestamp < 10000 {
|
||||||
this.conn.roundTrip.Update(current - timestamp)
|
this.conn.roundTrip.Update(current - timestamp)
|
||||||
}
|
}
|
||||||
this.ProcessAck(number)
|
this.ProcessAck(number)
|
||||||
|
@ -333,6 +332,7 @@ func (this *SendingWorker) ProcessSegment(current uint32, seg *AckSegment) {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.window.HandleFastAck(maxack)
|
this.window.HandleFastAck(maxack)
|
||||||
|
this.FillWindow(current)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *SendingWorker) Push(b []byte) int {
|
func (this *SendingWorker) Push(b []byte) int {
|
||||||
|
|
Loading…
Reference in New Issue