I'm getting a panic when I create an single object stream with a group_id that is 1 higher than the previous object stream:
thread 'main' panicked at /moq-rs-amadeus/moq-transport/src/serve/object.rs:133:45:
range start index 100 out of range for slice of length 1
This PR adds a check to make sure we're not trying to read objects that are out of range when the state.objects have been cleared in the ObjectsWriter. And in case the objects have been cleared, all new ObjectReaders are pushed to pending.
I'm getting a panic when I create an single object stream with a group_id that is 1 higher than the previous object stream:
This PR adds a check to make sure we're not trying to read objects that are out of range when the
state.objects
have been cleared in theObjectsWriter
. And in case the objects have been cleared, all newObjectReader
s are pushed to pending.