From 13ece0aca6cf2a7a6928cc18cd634d49393b0919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E6=89=87=E6=BB=91=E7=BF=94=E7=BF=BC?= Date: Mon, 9 Dec 2024 01:25:10 +0800 Subject: [PATCH] XHTTP: Add keepAlivePeriod --- docs/config/transports/splithttp.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/config/transports/splithttp.md b/docs/config/transports/splithttp.md index d3d6fa8..4298e24 100644 --- a/docs/config/transports/splithttp.md +++ b/docs/config/transports/splithttp.md @@ -29,6 +29,7 @@ The `XHttpObject` 对应传输配置的 `xhttpSettings` 项。 "scMinPostsIntervalMs": 30, "noSSEHeader": false, "xPaddingBytes": "100-1000", + "keepAlivePeriod": 45, "xmux": { "maxConcurrency": 0, "maxConnections": 0, @@ -113,6 +114,14 @@ XHTTP 的HTTP请求中所发送的host,默认值为空。若服务端值为空 设置为 `-1` 将完全禁用填充 +> `keepAlivePeriod` int + +发送保活请求的时间间隔,单位秒。 + +当使用 H2 和 H3 时分别对应 h2 ping 帧和 QUIC ping 帧。 + +默认值为:使用 H2 时 45 秒(Chrome 默认值), 使用 H3 时 10 秒(quic-go 默认值) + > `xmux`: [XmuxObject](#xmuxobject) ## XmuxObject