Closed YouZiSoftware closed 7 months ago
Do you have a input buffer source or no? If not, judging the frame length and indices im assuming this is a MC buffer source.
This issue should be fixed! Please let me know if you're still having this issue after updating to 0.3.2
!
Describe the bug The
sort_by
function in the collect method ofFragmentQueue
is usingid
for comparison during sorting (it should actually beindex
), causing theFrame
to be sorted incorrectly. As a result, in some instances, the outputVec<u8>
may be incorrect.To Reproduce Steps to reproduce the behavior: This issue may probabilistically occur when receiving a
Fragment
because the sorting is not done correctly, primarily due to the improper use ofid
instead ofindex
in the sorting process.Expected behavior Correcting the usage of the
sort_by
function, here is the suggested modified code:Server versions (please complete the following information):
Additional context Here is the debug output of my code, and the buffer concatenation is not correct: code:
output: