fast return on zero ack list

pull/314/head
Darien Raymond 8 years ago
parent 207c7aa8a7
commit a4019a6900
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -255,6 +255,10 @@ func (v *SendingWorker) ProcessSegment(current uint32, seg *AckSegment, rto uint
} }
v.ProcessReceivingNextWithoutLock(seg.ReceivingNext) v.ProcessReceivingNextWithoutLock(seg.ReceivingNext)
if seg.Count == 0 {
return
}
var maxack uint32 var maxack uint32
var maxackRemoved bool var maxackRemoved bool
for i := 0; i < int(seg.Count); i++ { for i := 0; i < int(seg.Count); i++ {

Loading…
Cancel
Save