Skip to content
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

[Bug] 050版本无法自动关闭连接 #4170

Open
5 of 7 tasks
CC-3301 opened this issue Nov 11, 2024 · 7 comments
Open
5 of 7 tasks

[Bug] 050版本无法自动关闭连接 #4170

CC-3301 opened this issue Nov 11, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@CC-3301
Copy link

CC-3301 commented Nov 11, 2024

Verify Steps

  • Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • Branch 我知道 OpenClash 的 Dev 分支切换开关位于插件设置-版本更新中,或者我会手动下载并安装 Dev 分支的 OpenClash
  • Latest 我已经使用最新 Dev 版本测试过,问题依旧存在
  • Relevant 我知道 OpenClash 与 内核(Core)、控制面板(Dashboard)、在线订阅转换(Subconverter)等项目之间无直接关系,仅相互调用
  • Definite 这确实是 OpenClash 出现的问题
  • Contributors 我有能力协助 OpenClash 开发并解决此问题
  • Meaningless 我提交的是无意义的催促更新或修复请求

OpenClash Version

v0.46.050-beta

Bug on Environment

Immortalwrt

OpenWrt Version

ImmortalWrt SNAPSHOT / LuCI Master 24.299.53074~4b66bf5

Bug on Platform

Linux-amd64-v3(x86-64)

Describe the Bug

更新50版本后发现连接不会自动关闭,配置文件写了
disable-keep-alive: false
但会被自动覆写成
disable-keep-alive: true
找不到相关配置关闭覆写
image
image

To Reproduce

Run

OpenClash Log

None

OpenClash Config

No response

Expected Behavior

添加选项,不强制覆写

Additional Context

No response

@CC-3301 CC-3301 added the bug Something isn't working label Nov 11, 2024
@fejeIaqbhbv
Copy link

fejeIaqbhbv commented Nov 11, 2024

#4165 (comment)

先用着吧

或者到/usr/share/openclash/yml_change.shValue['disable-keep-alive']=true这一行给删了

@CC-3301 CC-3301 changed the title [Bug] 050版本连接无法自动关闭 [Bug] 050版本无法自动关闭连接 Nov 11, 2024
@Zarah636
Copy link

同最新版,disable-keep-alive: false会被自动覆盖成disable-keep-alive: true,不写这个项也默认是 true
image

@lito12345
Copy link

也不用关,600,15会有问题,改成300,60问题解决,耗电没测

@dqbpqdpb
Copy link

dqbpqdpb commented Nov 12, 2024

昨天我想调整keep-alive也是一个情况,以为以前就是这样。
更新后连接数暴涨了,以前都是300左右,现在1700多,实际面板看不到这么多链接,不知道是不是这个原因引起的
有下载历史版本的地方么?想临时回.049避难

@TOPGUUN
Copy link

TOPGUUN commented Nov 13, 2024

覆写设置-开发者选项里自己添加

    ruby_edit "$CONFIG_FILE" "['disable-keep-alive']" "false"
    ruby_edit "$CONFIG_FILE" "['keep-alive-interval']" "60"
    ruby_edit "$CONFIG_FILE" "['keep-alive-idle']" "300"

@dqbpqdpb
Copy link

覆写设置-开发者选项里自己添加

    ruby_edit "$CONFIG_FILE" "['disable-keep-alive']" "false"
    ruby_edit "$CONFIG_FILE" "['keep-alive-interval']" "60"
    ruby_edit "$CONFIG_FILE" "['keep-alive-idle']" "300"

有效!多谢
ruby_edit "$CONFIG_FILE" "['disable-keep-alive']" "false"
只需要1行即可。

@refined-fish
Copy link

确实存在该问题,而且找不到设置项,实测导致连接超长待机,直接干出几千条,推送耗电问题不应该靠这个来解决,应该用绕过内核的方式来解决,否则耗电问题缓解带来的就是大量旧链接不清理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants