diff --git a/transport/internet/kcp/sending.go b/transport/internet/kcp/sending.go index 60d36c84..8bcee9af 100644 --- a/transport/internet/kcp/sending.go +++ b/transport/internet/kcp/sending.go @@ -255,6 +255,10 @@ func (v *SendingWorker) ProcessSegment(current uint32, seg *AckSegment, rto uint } v.ProcessReceivingNextWithoutLock(seg.ReceivingNext) + if seg.Count == 0 { + return + } + var maxack uint32 var maxackRemoved bool for i := 0; i < int(seg.Count); i++ {