XHTTP: Add keepAlivePeriod

pull/619/head
风扇滑翔翼 2024-12-09 01:25:10 +08:00 committed by GitHub
parent 40876a4f60
commit 13ece0aca6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -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