Skip to content

Commit 05aede1

Browse files
committed
fix a bug in FEC non-time continuous parityshard
1 parent 7296a7b commit 05aede1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fec.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,10 @@ func (enc *fecEncoder) encode(b []byte, rto uint32) (ps [][]byte) {
401401
ps[k] = ps[k][:enc.maxSize]
402402
}
403403
}
404+
} else {
405+
// through we do not send non-continuous parity shard, we still increase the next value
406+
// to keep the seqid aligned with 0 start
407+
enc.next = (enc.next + uint32(enc.parityShards)) % enc.paws
404408
}
405409

406410
// counters resetting

0 commit comments

Comments
 (0)