Repository navigation
feat(relay): 移植可选 HTTP/2 健康检查 (#169) - #177
Merged
Merged
Conversation
Port upstream 45746ee (QuantumNous#8059). Closes #169
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.
本 PR 由 Codex AI 辅助移植与验证;提交者负责交付内容,待独立审阅。git 身份 woncc 与本 fork 历史主要作者一致。
🔗 关联任务 / Related Issue
Closes #169
上游:45746eee4de25ab1eb75d4b7fbb8de2199483ea3(QuantumNous#8059)。
🚀 变更类型 / Type of change
📝 变更描述 / Description
移植上游可选 HTTP/2 PING 健康检查。默认关闭;启用后,仅关闭未回应 PING 的连接,健康慢响应继续等待。配置经共享 transport 工厂用于直连、代理和分片,不改变下游 SSE 心跳。
仅变更授权的 5 个文件,补丁 ID 与上游一致,未改依赖或数据库行为。
📸 运行证明 / Proof of Work
实际 Go 版本:go1.27.2 linux/amd64。
结果:service 17 个顶层 transport 测试通过(8.088s),覆盖默认禁用、健康慢响应、失联连接关闭与下一请求重连,以及分片、HTTP/1、代理缓存行为。第一条命令的 common 无匹配测试,第二条 common 全包通过(0.451s)。空白与格式检查无输出。
限度:未运行全仓测试、数据库矩阵或部署;未涉及 relaykit/tokenkit 修改。独立审核尚待进行。
✅ 提交前检查项 / Checklist