Repository navigation
fix: 修复坏头重同步后完整帧等待额外输入 - #74
Merged
Merged
Conversation
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
坏长度头与合法完整帧同批到达时,定界器丢弃坏头后返回 false,解码器原先停止解析并等待额外输入。本改动在 false 且已消费前缀时继续解析,无消费进展才等待输入;保留四字节坏头丢弃策略和公共接口,补充 XML 推进契约。
新增 7 个确定性 Pipe 用例覆盖无后续写入交付、连续坏头、粘包、半帧续写/EOF、普通自定义 Framer false 推进、无进展停止、完整缓冲不触发半帧超时,以及 FrameError 字节数/SessionId/快照元数据。前 6 个用例在原实现全部红测,修复后通过;CHANGELOG Unreleased 已更新。
验证:
Closes #64