Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

[Bug] panic: send on closed channel #254

Open
Aruelius opened this issue Mar 6, 2023 · 2 comments
Open

[Bug] panic: send on closed channel #254

Aruelius opened this issue Mar 6, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Aruelius
Copy link

Aruelius commented Mar 6, 2023

Describe the bug【描述 bug】

panic: send on closed channel

goroutine 94388 [running]:
github.com/e1732a364fed/v2ray_simple/netLayer.(*UDPMsgConn).readSymmetricMsgFromConn(0xc000287100, 0xc000012198, {{0xe5a0ff, 0x3}, {0x0, 0x0}, {{{0x0, 0xffff9df00d13}, 0xc0000bc0a8}, 0x1bb}})
        github.com/e1732a364fed/v2ray_simple/netLayer/msgconn.go:163 +0x2a5
created by github.com/e1732a364fed/v2ray_simple/netLayer.(*UDPMsgConn).WriteMsg
        github.com/e1732a364fed/v2ray_simple/netLayer/msgconn.go:219 +0x615

To Reproduce【如何复现该bug】
v1.2.5 版本从 25 号到现在崩溃两次,进程自动退出

Envs (please complete the following information):【系统环境】

Linux

@Aruelius Aruelius added the bug Something isn't working label Mar 6, 2023
@Aruelius Aruelius changed the title [Bug] [Bug] panic: send on closed channel Mar 6, 2023
@Aruelius
Copy link
Author

代码中判断一下准备写入的通道状态可以解决,这个问题是在客户端用 v2rayNG 时候出现的,和设置的远程 DNS 有关,应该是 v2rayNG 会去请求一次该 DNS 导致的:

"Target": "udp://1.1.1.1:53"

@e1732a364fed
Copy link
Owner

收到

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

No branches or pull requests

2 participants