Comments (18)
代码复杂 不知道timeout是咋运行的
timer在
Xray-core/proxy/vless/outbound/outbound.go
Line 238 in 26d49df
被传入 encoding.XtlsWrite()
在其内部好像只有一个简单粗暴的
Xray-core/proxy/vless/encoding/encoding.go
Line 248 in 26d49df
在其他情况下 这个timer是这么用的
Xray-core/proxy/vless/outbound/outbound.go
Line 241 in 26d49df
from xray-core.
@MetaZuo 能麻烦你两端换成最新构建试下 https://github.com/XTLS/Xray-core/actions/runs/9143464115
@yuhan6665 bug依然存在,症状相同,已确认双端运行的构建版本都是3168d27
server error.log
2024/05/19 05:26:51 [Debug] app/log: Logger started
2024/05/19 05:26:51 [Info] app/dns: DNS: created Local DOH client for https://cloudflare-dns.com/dns-query
2024/05/19 05:26:51 [Info] app/dns: DNS: created UDP client initialized for 1.1.1.1:53
2024/05/19 05:26:51 [Info] app/dns: DNS: created UDP client initialized for 1.0.0.1:53
2024/05/19 05:26:51 [Info] app/dns: DNS: created UDP client initialized for 8.8.8.8:53
2024/05/19 05:26:51 [Info] app/dns: DNS: created UDP client initialized for 8.8.4.4:53
2024/05/19 05:26:51 [Info] app/dns: DNS: created localhost client
2024/05/19 05:26:51 [Debug] app/router: MphDomainMatcher is enabled for 76581 domain rule(s)
2024/05/19 05:26:51 [Debug] app/stats: create new counter inbound>>>api>>>traffic>>>uplink
2024/05/19 05:26:51 [Debug] app/stats: create new counter inbound>>>api>>>traffic>>>downlink
2024/05/19 05:26:51 [Debug] app/proxyman/inbound: creating stream worker on 127.0.0.1:32768
2024/05/19 05:26:51 [Debug] app/stats: create new counter inbound>>>xray-script-xtls-reality>>>traffic>>>uplink
2024/05/19 05:26:51 [Debug] app/stats: create new counter inbound>>>xray-script-xtls-reality>>>traffic>>>downlink
2024/05/19 05:26:51 [Debug] app/proxyman/inbound: creating stream worker on 0.0.0.0:443
2024/05/19 05:26:51 [Debug] app/stats: create new counter outbound>>>direct>>>traffic>>>uplink
2024/05/19 05:26:51 [Debug] app/stats: create new counter outbound>>>direct>>>traffic>>>downlink
2024/05/19 05:26:51 [Debug] app/stats: create new counter outbound>>>block>>>traffic>>>uplink
2024/05/19 05:26:51 [Debug] app/stats: create new counter outbound>>>block>>>traffic>>>downlink
2024/05/19 05:26:51 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:32768
2024/05/19 05:26:51 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:443
2024/05/19 05:26:51 [Warning] core: Xray 1.8.11 started
2024/05/19 05:27:10 [Info] [3895005955] proxy/vless/inbound: firstLen = 1186
2024/05/19 05:27:10 [Info] [3895005955] proxy/vless/inbound: received request for tcp:download.pytorch.org:443
2024/05/19 05:27:10 [Debug] app/stats: create new counter user>>>[email protected]>>>traffic>>>uplink
2024/05/19 05:27:10 [Debug] app/stats: create new counter user>>>[email protected]>>>traffic>>>downlink
2024/05/19 05:27:10 [Info] [3895005955] proxy: Xtls Unpadding new block, content 295 padding 847 command 0
2024/05/19 05:27:10 [Info] [3895005955] proxy: XtlsFilterTls found tls client hello! 295
2024/05/19 05:27:10 [Info] [3895005955] app/dispatcher: sniffed domain: download.pytorch.org
2024/05/19 05:27:10 [Debug] app/dns: domain download.pytorch.org will use DNS in order: [DOHL//cloudflare-dns.com UDP:1.1.1.1:53 UDP:1.0.0.1:53 UDP:8.8.8.8:53 UDP:8.8.4.4:53 localhost]
2024/05/19 05:27:10 [Info] app/dns: DOHL//cloudflare-dns.com querying: download.pytorch.org.
2024/05/19 05:27:10 [Debug] transport/internet: dialing to tcp:cloudflare-dns.com:443
2024/05/19 05:27:10 [Debug] transport/internet: dialing to tcp:cloudflare-dns.com:443
2024/05/19 05:27:10 [Info] app/dns: DOHL//cloudflare-dns.com got answer: download.pytorch.org. TypeAAAA -> [[2600:9000:2135:b200:d:607e:4540:93a1] [2600:9000:2135:3600:d:607e:4540:93a1] [2600:9000:2135:5000:d:607e:4540:93a1] [2600:9000:2135:5e00:d:607e:4540:93a1] [2600:9000:2135:1a00:d:607e:4540:93a1] [2600:9000:2135:9a00:d:607e:4540:93a1] [2600:9000:2135:7a00:d:607e:4540:93a1] [2600:9000:2135:d400:d:607e:4540:93a1]] 91.312846ms
2024/05/19 05:27:10 [Info] app/dns: DOHL//cloudflare-dns.com got answer: download.pytorch.org. TypeA -> [13.224.163.76 13.224.163.73 13.224.163.10 13.224.163.42] 173.108302ms
2024/05/19 05:27:10 [Info] [3895005955] app/dispatcher: default route for tcp:download.pytorch.org:443
2024/05/19 05:27:10 [Info] [3895005955] transport/internet/tcp: dialing TCP to tcp:download.pytorch.org:443
2024/05/19 05:27:10 [Debug] transport/internet: dialing to tcp:download.pytorch.org:443
2024/05/19 05:27:11 [Info] [3895005955] proxy/freedom: connection opened to tcp:download.pytorch.org:443, local endpoint [隐去]:54608, remote endpoint [2600:9000:2135:5c00:d:607e:4540:93a1]:443
2024/05/19 05:27:11 [Info] [3895005955] proxy: XtlsFilterTls found tls 1.3! 4832 TLS_AES_128_GCM_SHA256
2024/05/19 05:27:11 [Info] [3895005955] proxy: XtlsPadding 4832 124 0
2024/05/19 05:27:11 [Info] [3895005955] proxy: XtlsPadding 1155 214 0
2024/05/19 05:27:11 [Info] [3895005955] proxy: Xtls Unpadding new block, content 64 padding 849 command 0
2024/05/19 05:27:11 [Info] [3895005955] proxy: Xtls Unpadding new block, content 160 padding 752 command 2
2024/05/19 05:27:11 [Info] [3895005955] proxy: CopyRawConn readv
2024/05/19 05:27:11 [Info] [3895005955] proxy: XtlsPadding 146 1132 2
2024/05/19 05:27:11 [Info] [3895005955] proxy: CopyRawConn splice
2024/05/19 05:27:50 [Info] [3895005955] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > context canceled
client Verror.txt
2024/05/19 13:27:04 [Debug] app/log: Logger started
2024/05/19 13:27:04 [Info] app/dns: DNS: created UDP client initialized for 223.5.5.5:53
2024/05/19 13:27:04 [Info] app/dns: DNS: created UDP client initialized for 1.1.1.1:53
2024/05/19 13:27:04 [Info] app/dns: DNS: created UDP client initialized for 8.8.8.8:53
2024/05/19 13:27:04 [Info] app/dns: DNS: created Remote DOH client for https://dns.google/dns-query
2024/05/19 13:27:04 [Debug] app/proxyman/inbound: creating stream worker on 127.0.0.1:1181
2024/05/19 13:27:04 [Debug] app/proxyman/inbound: creating stream worker on 127.0.0.1:1182
2024/05/19 13:27:04 [Debug] app/proxyman/inbound: creating stream worker on 127.0.0.1:1186
2024/05/19 13:27:04 [Debug] app/stats: create new counter outbound>>>proxy>>>traffic>>>uplink
2024/05/19 13:27:04 [Debug] app/stats: create new counter outbound>>>proxy>>>traffic>>>downlink
2024/05/19 13:27:04 [Debug] app/stats: create new counter outbound>>>direct>>>traffic>>>uplink
2024/05/19 13:27:04 [Debug] app/stats: create new counter outbound>>>direct>>>traffic>>>downlink
2024/05/19 13:27:04 [Debug] app/stats: create new counter outbound>>>block>>>traffic>>>uplink
2024/05/19 13:27:04 [Debug] app/stats: create new counter outbound>>>block>>>traffic>>>downlink
2024/05/19 13:27:04 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1181
2024/05/19 13:27:04 [Info] transport/internet/udp: listening UDP on 127.0.0.1:1181
2024/05/19 13:27:04 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1182
2024/05/19 13:27:04 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1186
2024/05/19 13:27:04 [Warning] core: Xray 1.8.11 started
2024/05/19 13:27:09 [Info] [845647488] proxy/socks: TCP Connect request to tcp:18.65.3.71:443
2024/05/19 13:27:09 [Info] [845647488] app/dispatcher: sniffed domain: download.pytorch.org
2024/05/19 13:27:09 [Info] [845647488] app/dispatcher: taking detour [proxy] for [tcp:download.pytorch.org:443]
2024/05/19 13:27:09 [Info] [845647488] transport/internet/tcp: dialing TCP to tcp:隐去:443
2024/05/19 13:27:09 [Debug] transport/internet: dialing to tcp:隐去:443
2024/05/19 13:27:09 [Info] [845647488] proxy/vless/outbound: tunneling request to tcp:download.pytorch.org:443 via 隐去:443
2024/05/19 13:27:09 [Info] [845647488] proxy: XtlsFilterTls found tls client hello! 295
2024/05/19 13:27:09 [Info] [845647488] proxy: XtlsPadding 295 847 0
2024/05/19 13:27:10 [Info] [845647488] proxy: Xtls Unpadding new block, content 4832 padding 124 command 0
2024/05/19 13:27:10 [Info] [845647488] proxy: XtlsFilterTls found tls 1.3! 1163 TLS_AES_128_GCM_SHA256
2024/05/19 13:27:10 [Info] [845647488] proxy: Xtls Unpadding new block, content 1155 padding 214 command 0
2024/05/19 13:27:10 [Info] [845647488] proxy: XtlsPadding 64 849 0
2024/05/19 13:27:10 [Info] [845647488] proxy: XtlsPadding 160 752 2
2024/05/19 13:27:10 [Info] [845647488] proxy: Xtls Unpadding new block, content 146 padding 1132 command 2
2024/05/19 13:27:10 [Info] [845647488] proxy: CopyRawConn readv
2024/05/19 13:27:51 [Info] [845647488] app/proxyman/inbound: connection ends > proxy/socks: connection ends > context canceled
2024/05/19 13:28:45 [Debug] app/log: Logger closing
from xray-core.
@MetaZuo 你的日志帮我想起 inbound 缺了一个修复 你再试下 https://github.com/XTLS/Xray-core/actions/runs/9153291749
@yuhan6665 经测试应该是解决了,感谢!
from xray-core.
测试时只把 Server config 里面的 connIdle 改成了 20,写 issue 时忘记更新了。Server log 可见
2024/05/09 12:46:05 [Info] [2259118787] proxy/vless/inbound: received request for tcp:download.pytorch.org:443
40秒后
2024/05/09 12:46:45 [Info] [2259118787] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > context canceled
(Server 时区 UTC+0,Client 时区 UTC+8)
from xray-core.
xtls对于timer的实现似乎不正确 关掉flow试一试
from xray-core.
xtls对于timer的实现似乎不正确 关掉flow试一试
服务端和客户端 flow 都置空,的确没有再断了
from xray-core.
xtls对于timer的实现似乎不正确 关掉flow试一试
服务端和客户端 flow 都置空,的确没有再断了
关掉flow不会失去安全性吗
from xray-core.
是bug 会修的 要关只是确认一下
from xray-core.
@MetaZuo 真牛逼,這麼隱藏的bug都被你發現了
from xray-core.
已知潜在问题,双向 Splice 会导致 timer 没被更新从而掐断连接 @yuhan6665
from xray-core.
可以吧 这周再填一个坑
from xray-core.
可以吧
这周再填一个坑
这个坑挺好填的,Splice 又观察不了,不就只有把 timeout 扔掉这一个方法吗
from xray-core.
代码复杂 不知道timeout是咋运行的
from xray-core.
不知道 Linux 双向 Splice 后有没有自带不活跃超时机制,希望它有,或者有 syscall 能给单个 TCP socket 设置不活跃超时关闭也行
from xray-core.
yuhan6665:我没实现双向 splice。。只是加了 freedom 下行方向。。
R佬:这里说的那些软件 开始下载后上行不活跃的
from xray-core.
@MetaZuo 能麻烦你两端换成最新构建试下 https://github.com/XTLS/Xray-core/actions/runs/9143464115
from xray-core.
@MetaZuo 你的日志帮我想起 inbound 缺了一个修复 你再试下 https://github.com/XTLS/Xray-core/actions/runs/9153291749
from xray-core.
Thanks all!
from xray-core.
Related Issues (20)
- 编译xray-core时出现错误:gvisortun/tun.go中 'pkt.IsNil undefined' 的问题 HOT 1
- stop xray core in wiregourd HOT 3
- Wireguard Inbound Panic when connecting via WiresockUI client HOT 2
- API: Stats of the user remains when the user got deleted through API HOT 10
- 获取ipv6地址失败后产生DNS泄露 HOT 4
- block specific users country HOT 2
- Bump up gvisor dependencies HOT 1
- Weird behaviour of reverse proxy HOT 4
- [Feature Request] Changing the order of ping checks when "enableConcurrency": false HOT 1
- maxTimeDiff for VMESS HOT 16
- [Feature Request] https h2 proxy HOT 16
- The filtering of the Reality protocol within an hour in version v1.8.13 in Iran by the Iranian firewall HOT 7
- Compatibility Issue with WireGuard for Streaming Services HOT 4
- Is now any available package for building IOS and Android client in Flutter or React Native HOT 1
- 2022 edition shadowsocks methods don't work for `clients` HOT 2
- 安卓手机xray模块无法正确dns到localhost HOT 2
- observatory dns problem when using vpn mode HOT 2
- Some problems with httpupgrade headers HOT 5
- 本地通过主机名访问的内网机器连接不上 HOT 3
- 用户id验证失败 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xray-core.