Add health check for h2 (#130)

pull/131/head
xqzr 2021-09-30 01:13:53 +08:00 committed by GitHub
parent 75e9fd99bf
commit 581214ee13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 1 deletions

View File

@ -27,7 +27,9 @@ HTTP/2 内置多路复用,不建议使用 HTTP/2 时启用 mux.cool。
```json
{
"host": ["xray.com"],
"path": "/random/path"
"path": "/random/path",
"read_idle_timeout": 10,
"health_check_timeout": 15
}
```
@ -42,3 +44,15 @@ HTTP/2 内置多路复用,不建议使用 HTTP/2 时启用 mux.cool。
HTTP 路径,由 `/` 开头, 客户端和服务器必须一致。
默认值为 `"/"`
> `read_idle_timeout` number
单位秒,当这段时间内没有接收到数据时,将会进行健康检查。
健康检查默认**不启用**。
仅需在**客户端**配置。
> `health_check_timeout` number
单位秒,健康检查的超时时间。如果在这段时间内没有完成健康检查,即认为健康检查失败。默认值为 `15`