Open pkuzmin opened 1 year ago
@pkuzmin The reblock process has been reviewed: there is a new reordering process now in charge of dealing with the ordering of received blocks. This process cannot be stuck in an infinite loop; in case of synchronization lost, the error is propagated; It should also solve the issue #4.
When transferring files, if there is a loss of UDP packets and the reblock process cannot assemble a block for decoding, such a loss of synchronization may occur, in which, as a result, the decoding process gets stuck in an infinite loop (the condition
*to_receive == block_id
is not met) https://github.com/ANSSI-FR/lidi/blob/3d8654e6ec12aba61001c2dcdad8aecc3479a54b/src/receive/decoding.rs#L30-L39 Packet loss can be simulated with such a simple codeBR, Pavel