hev-socks5-tunnel 疑似有连接空闲超时过短问题 #4810
KobeArthurScofield
started this conversation in
General
Replies: 2 comments 2 replies
-
不太确定是不是这个配置项,目前从 FCM 日志来看大概是在空闲 60s 被断开 @fuilloi 有没有什么想法 |
Beta Was this translation helpful? Give feedback.
1 reply
-
默认值建议多少?现在是300000 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
使用版本 1.10.15,分别用 badvpn 模式和 hev-socks5-tunnel 模式测试。
使用 badvpn 时的连接空闲超时取决于整个代理链路上空闲超时最短的节点,只要整个链路上配置的超时时间足够长(以及相关的配置合理),一个很久才交换一次数据的连接可以保持连接很久不会断开(比如 FCM 长连接)。
使用 hev-socks5-tunnel 时,hev 的连接空闲超时似乎有过短的问题(甚至很可能短于 V2Ray/Xray 默认情况下的 300 秒),连接大多在空闲 60-120 秒左右会被断开(偶尔会在 200 多秒时断开),对诸如 FCM 长连接之类的很久才交换一次数据的连接会有保活问题。
目前看可能需要对 hev-socks5-tun 进行额外配置才能保持长连接存活。如果以 FCM 长连接的标准来看,配置
read-write-timeout
至1800000
可能已经非常足够(FCM 最长心跳包间隔为 1730s),而对于 V2Ray/Xray 来说,默认情况下 300s (5 分钟)才会连接空闲超时,tun 设置为 1800s 空闲超时不会对性能有太大问题(因为 core 默认配置下会在 300s 时掐断连接,而使用自定义配置可以延长这个超时时间)Beta Was this translation helpful? Give feedback.
All reactions