Repository navigation
docs: 补全驱动缓冲所有权与并发约束及生产示例 - #78
Merged
Merged
Conversation
5 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.
Closes #69
补全自定义驱动的缓冲借用与并发约束:Decode 返回数据必须独立拥有,Encode 不得异步保留 writer;明确同连接读写、新旧会话任务重叠以及跨连接共享 Codec/Framer 的责任。保持公共 API、实现与默认值不变。
双语 README/XML 同步说明安全 byte[] / ReadOnlyMemory 消息、有界收发队列与消息数计量、半帧限制和超时、取消/Dispose、单客户端监听边界,并对齐 #62 KeepAlive 取整、#65 终态等待取消、#67 入队非远端确认。JSON 示例释放文档并 Clone 结果。
验证:
dotnet build StreamFrame.slnx -c Release:0 warning / 0 error。dotnet test StreamFrame.slnx -c Release --no-build:net8.0 132 通过、net10.0 132 通过、net48 124 通过;每目标 3 项 Soak 按默认跳过,0 失败。