Repository navigation
心跳保活示例 + 空闲超时 0 字节完成误判修复 - #30
Merged
Merged
Conversation
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.
心跳示例
ReceiveIdleTimeoutMs的完整范式;断言设计为诚实对照——有心跳时连接稳定(零状态事件),停止心跳后空闲判定触发重连状态翻动(真实猝死时对端不可达、会停留在 Connecting)修复(写示例时挖出的真 bug)
WaitForConnectedAsync走立即完成快速路径,断言撞上对方毫秒级的 Connecting→Connected 过渡——改为轮询双方状态(时间线诊断实锤),10 连跑无抖动验证
demo 10/10 全过;三框架 55×3 全绿。