-
Notifications
You must be signed in to change notification settings - Fork 191
-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] 设置合理的keep alive idle及interval,避免额外的电量消耗 #45
Comments
感谢反馈,将在下个版本跟进 |
会考虑改成,默认禁用,在override中可以修改成开启 |
Will be released in 2.18.4 |
@getsurfboard |
感谢反馈 |
Will be released in 2.18.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
用surfboard连接vmess服务端,用tcpdump抓包可以看到客户端发起的keep alive的心跳:
golang默认将keep alive的心跳间隔设置在15s,而在xray-core已经给streamsettings增加了两个字段tcpKeepAliveIdle和tcpKeepAliveInterval,用于手动设置keep alive的心跳参数。
surfboard作为移动端应用,建议参考clash for android的做法禁用keepalive,或者配置xray参数,给tcpKeepAliveIdle和tcpKeepAliveInterval设置较长的时间间隔。
XTLS/Xray-core#1166
v2ray/v2ray-core#2564
The text was updated successfully, but these errors were encountered: