Skip to content

Commit 13ece0a

Browse files
authored
XHTTP: Add keepAlivePeriod
1 parent 40876a4 commit 13ece0a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/config/transports/splithttp.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ The `XHttpObject` 对应传输配置的 `xhttpSettings` 项。
2929
"scMinPostsIntervalMs": 30,
3030
"noSSEHeader": false,
3131
"xPaddingBytes": "100-1000",
32+
"keepAlivePeriod": 45,
3233
"xmux": {
3334
"maxConcurrency": 0,
3435
"maxConnections": 0,
@@ -113,6 +114,14 @@ XHTTP 的HTTP请求中所发送的host,默认值为空。若服务端值为空
113114

114115
设置为 `-1` 将完全禁用填充
115116

117+
> `keepAlivePeriod` int
118+
119+
发送保活请求的时间间隔,单位秒。
120+
121+
当使用 H2 和 H3 时分别对应 h2 ping 帧和 QUIC ping 帧。
122+
123+
默认值为:使用 H2 时 45 秒(Chrome 默认值), 使用 H3 时 10 秒(quic-go 默认值)
124+
116125
> `xmux`: [XmuxObject](#xmuxobject)
117126
118127
## XmuxObject

0 commit comments

Comments
 (0)