Closed jscarle closed 4 months ago
@WojciechNagorski Following @Rob-Hague 's observation in #1207, there is indeed an issue where the incoming queue may not dequeue at the same rate as the expect queue if the data that has not been processed exceeds the size of the expect buffer. An improbable case, but nonetheless, this PR fixes that.
Additionally, I made sure that the full incoming queue is returned when Expect matches and not just the expected queue.
@WojciechNagorski @Rob-Hague This is ready to be merged.
Fixed the dequeueing of the _incoming queue following #1207 and added the related test to protect against future regressions.