Repository navigation
fix: 修复 HTTP/3 慢响应的 QUIC 空闲超时 - #75
Merged
Merged
Conversation
- 保活 PING 改为只在请求流未完成时按空闲超时的一半发送,空闲连接与 Firefox 一样到时关闭 - 升级 uquic 分叉以支持按流保活,移出与保活无关的取消测试,补充 HTTP/3 保活文档
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.
改动 / Changes
为 QUIC 连接启用 10 秒 PING 保活,避免等待生成响应时触发空闲超时。补充慢响应头、响应体停顿和请求取消测试。
验证 / Verification
timeout: no recent network activity;修复后连续 20 轮通过。go test -mod=readonly ./internal/aistudio -run 'TestHTTP3(SlowResponse|KeepAliveCancellation)$' -count=20CGO_ENABLED=0 go test -mod=readonly ./cmd/... ./internal/...CGO_ENABLED=0 go vet -mod=readonly ./...CGO_ENABLED=0 GOOS=windows go vet -mod=readonly -tags desktop,production ./...