Skip to content

Commit

Permalink
fix a bug in FEC non-time continuous parityshard
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Aug 28, 2024
1 parent 7296a7b commit 05aede1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fec.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ func (enc *fecEncoder) encode(b []byte, rto uint32) (ps [][]byte) {
ps[k] = ps[k][:enc.maxSize]
}
}
} else {
// through we do not send non-continuous parity shard, we still increase the next value
// to keep the seqid aligned with 0 start
enc.next = (enc.next + uint32(enc.parityShards)) % enc.paws
}

// counters resetting
Expand Down

0 comments on commit 05aede1

Please sign in to comment.