Skip to content

Fix ULog streaming framing and end-of-file handling - #3

Open
xia-chao wants to merge 1 commit into
mainfrom
fix/ulog-reader-streaming
Open

xia-chao wants to merge 1 commit into
mainfrom
fix/ulog-reader-streaming

Conversation

@xia-chao

Copy link
Copy Markdown
Contributor

Changes

  • Buffer split file headers and flag records, including extended flag payloads.
  • Recognize a short legacy log without a flag record and reject flag records shorter than their required payload.
  • Continue processing recovered records from the final chunk, even if a message ID spans two chunks.
  • Add explicit Reader finalization and call it at CLI EOF to report truncated messages.

Verification

  • The Linux server cases reproduced chunk-dependent failures, lost recovered records, and a silent truncated tail before implementation.
  • CTest passed 4/4, including the C++ tests. The focused Reader cases passed 104/104 assertions.
  • Checked the CLI with recorded full and truncated logs, a complete input ending on the 4096-byte read boundary, and short headers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant