Add health check for h2 (#130)
parent
75e9fd99bf
commit
581214ee13
|
@ -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`。
|
||||
|
|
Loading…
Reference in New Issue