SagerNet / sing-box

The universal proxy platform
https://sing-box.sagernet.org/
Other
20.15k stars 2.4k forks source link

v1.11.0-alpha.16 udp_timeout cfg is not working #2285

Open srk24 opened 6 days ago

srk24 commented 6 days ago

Operating system

Windows

System version

WIN11 LTSC 24H2 26100.2314

Installation type

Original sing-box Command Line

If you are using a graphical client, please provide the version of the client.

no use

Version

sing-box version 1.11.0-alpha.16

Environment: go1.23.3 windows/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_acme,with_clash_api
Revision: 7aab073aa52d85b6a4356449e19ede363dd74b2d
CGO: disabled

Description

When using tun system/gvisor inbound, when I play a game, I find that too many udp connections stay open for more than 30 minutes, could this be a bug? I tried to return to v1.10 and everything works fine. Snipaste_2024-11-16_16-19-41

Reproduction

{
  "experimental": {
    "cache_file": {
      "enabled": true
    },
    "clash_api": {
      "external_controller": "127.0.0.1:9090",
      "external_ui": "ui"
    }
  },
  "dns": {
    "servers": [
      {
        "tag": "dns_encrypt",
        "address": "h3://223.5.5.5/dns-query",
        "detour": "direct-out"
      }
    ],
    "final": "dns_encrypt",
    "strategy": "prefer_ipv4"
  },
  "inbounds": [
    {
      "type": "tun",
      "tag": "tun-in",
      "address": ["192.18.0.1/30", "fccc::1/126"],
      "auto_route": true,
      "stack": "system",
      "udp_timeout": "1m"
    }
  ],
  "route": {
    "auto_detect_interface": true,
    "final": "direct-out",
    "rules": [
      {
        "action": "hijack-dns",
        "port": 53
      }
    ]
  },
  "outbounds": [
    {
      "type": "direct",
      "tag": "direct-out"
    }
  ]
}

Logs

No response

Supporter

Integrity requirements