SFA dns使用type local会导致有大量死连接,这些连接存在时停止内核就会卡死
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 38.1k
- Forks
- 4.6k
- Avg merge
- 19d 15h
- Merged PRs (30d)
- 1
Description
操作系统
Android
系统版本
android14
安装类型
sing-box for Android 图形客户端程序
如果您使用图形客户端程序,请提供该程序版本。
1.14.0-alpha.5
版本
描述
SFA配置的dns部分如果使用local dns解析国内域名如geosite: cn,运行了几个小时便会有大量的死连接,这些连接持续几个小时没有任何流量,把对应app强行停止,入站连接依旧存在;且大量这样的死连接存在时,停止运行内核大概率会卡死。保持一样的配置,把解析cn域名的dns.server替换成udp等类型就不会出现。
上图是大量死连接的一个例子,这些连接甚至几个小时不会关闭。
上图是有大量死连接时,停止内核会出现卡死的现象,一直显示停止中,有时会抛出错误
重现方式
使用type:local dns解析域名,同样的配置把type替换成udp等其他类型以及随便一个dns服务器,问题不再出现
日志
由于日志看不出问题,没有贴任何日志
支持我们
- 我已经 赞助
完整性要求
- 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
- 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
- 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the SFA Android client using a DNS server of type local for domestic domains, then compare it with the same configuration using udp. Trace the connections that remain after several hours and the shutdown path when they are present. Done means the local DNS setup no longer leaves dead connections and the kernel stops without hanging.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, go
- Domain
- mobile, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100