Xray-core icon indicating copy to clipboard operation
Xray-core copied to clipboard

Splice cause low usage report and can not be turned off

Open MK0ltra opened this issue 1 year ago • 3 comments

So problem is, All versions of Xray after 1.8.4 have problem with user stats, usage reports are lower than actual so i can't update to latest version and stuck on 1.8.4. Also i've set xray.buf.splice=disable in env so i can turn off splice but i still see CopyRawConn splice in logs so this option is not working.

Should i change all CanSpliceCopy to value of 3 and then compile the code, Is this gonna work? There's also hard-coded values here: https://github.com/XTLS/Xray-core/blob/6991c119e7551b3b19935fc3169da2dfb7be439b/proxy/vless/encoding/encoding.go#L185

MK0ltra avatar Mar 05 '24 06:03 MK0ltra

related issues to splice: https://github.com/XTLS/Xray-core/issues/2883 https://github.com/XTLS/Xray-core/issues/1671

MK0ltra avatar Mar 05 '24 06:03 MK0ltra

@yuhan6665 这里可能是没给另一边 counter 加,我们把它和 https://github.com/XTLS/Xray-core/issues/3058 修了后发 v1.8.9 吧,等下我更新下分享链接标准

RPRX avatar Mar 05 '24 06:03 RPRX

@yuhan6665 https://github.com/XTLS/Xray-core/discussions/716 已更新。你修一下这个 issue 和 https://github.com/XTLS/Xray-core/issues/3058 (启动时跑一下检测就行),我修一下 https://github.com/XTLS/Xray-core/issues/2248 和 https://github.com/XTLS/Xray-core/issues/3101

RPRX avatar Mar 05 '24 08:03 RPRX

嗯。。测了一下客户端和服务器的 inbound outbound splice 都没有问题 ~~当然流量统计是滞后的~~ 另外 xray.buf.splice=disable 只能用来关闭服务端的 splice 应该也是没有问题的

yuhan6665 avatar Mar 06 '24 23:03 yuhan6665