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

UDP 链接未及时关闭? #2456

Closed
qjebbs opened this issue Jan 8, 2025 · 0 comments
Closed

UDP 链接未及时关闭? #2456

qjebbs opened this issue Jan 8, 2025 · 0 comments

Comments

@qjebbs
Copy link

qjebbs commented Jan 8, 2025

操作系统

macOS

系统版本

15.2 (24C101)

安装类型

sing-box 原始命令行程序

如果您使用图形客户端程序,请提供该程序版本。

No response

版本

1.11.0-beta.20

描述

起因是微信启动时观察到连接数暴涨,均为与 183.131.39.111:443 的 UDP 链接。

重现方式

精简配置后,可复现:

  • config.json: 仅配置 tun 且所有请求直连
  • 运行:sing-box run -c config.json
  • 在终端执行 for i in {1..10}; do nc -uvz 183.131.39.111 443; done

nc -z在接通后立即关闭,但在 UI 中观察到大量未被及时关闭的 UDP 链接(十分钟甚至更长)。

日志

4m40s 时第一个链接被关闭,共 5 条日志:


INFO[0014] [1743200884 0ms] inbound/tun[tun]: inbound packet connection from 172.19.0.1:49425
INFO[0014] [1743200884 0ms] inbound/tun[tun]: inbound packet connection to 183.131.39.111:443
INFO[0014] [1743200884 0ms] outbound/direct[direct]: outbound packet connection
TRACE[0288] [1743200884 4m40s] connection: packet upload closed
TRACE[0288] [1743200884 4m40s] connection: packet download closed

未被关闭的链接,曾经观察到至少保持了 25 分钟以上。



### 支持我们

- [ ] 我已经 [赞助](https://github.com/sponsors/nekohasekai/)

### 完整性要求

- [X] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- [X] 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
- [X] 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
- [X] 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。
@nekohasekai nekohasekai closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants