Conversation
after DispatchLink ends, in addition to conn, ctx must also be canceled: https://github.com/XTLS/Xray-core/blob/7ff06f65eccdcd2f5722ee369d23b699aeb5cc0f/app/proxyman/inbound/worker.go#L61-L63 https://github.com/XTLS/Xray-core/blob/7ff06f65eccdcd2f5722ee369d23b699aeb5cc0f/app/proxyman/inbound/worker.go#L131-L132
|
Unfortunately, current Xray-core features do not help the current situation in Iran. also, at least a basic dns-tunnel should be added. |
|
DNS、ICMP 这两个 udpmasks 倒是有计划,IP/TCP header 挺新鲜的,实现起来也是 udpmasks 的范畴
|
|
@Fangliding 有些人提到的 TUN 用久了会卡是不是可能和没 cancel ctx 有关 |
|
idk 我也没看过刨析文件 不过加个cancel是对的 |
in v2rayNG, hev-socks5-tunnel wasn't working after a while, that was because default UDP-timeout was set to 300s and we had many DNS requests during this time and that would cause the program to crash, changing UDP-timeout to 60s solved the problem.
|
|
加个 cancel 是对的,不过似乎没看到真的有人开 issue 说“TUN 用久了会卡”的问题,这个 2dust/v2rayNG#5175 不像是 core 的问题 |
|
|
|
This just adds a cancelable context layer on top of existing context, that lives during handling, and then canceled after. |
|
|
|
Only if "cancel" is called somewhere during context lifecycle, and in this change it's not called until end of function where context goes out of scope anyway. |
|
|
after DispatchLink ends, in addition to conn, ctx must also be canceled:
Xray-core/app/proxyman/inbound/worker.go
Lines 61 to 63 in 7ff06f6
Xray-core/app/proxyman/inbound/worker.go
Lines 131 to 132 in 7ff06f6