Losing frames under exceptional cases of long framestreams with incomplete frames

Issue #2 resolved
Victor Christian Paredes Cauna created an issue

Under (very) special circumstances, we might lose 1 frame packet. These cases are originated from a frame that has incomplete frame ending, for example:

[ .... <Header .... checksum> < Frame > < Frame > ... <Incomplete Frame> ]

This case is rarely seen as Frames usually comes complete. In this case, Incomplete Frame will be lost. Instead we should clear the buffer, place <Incomplete Frame> and set nBytesInBuffer to the number of bytes remaining expecting to receive another framestream completing the <Incomplete Frame>

Comments (1)

  1. Log in to comment