Skip to content

Conversation

@LGA1150
Copy link

@LGA1150 LGA1150 commented Dec 24, 2025

HTTPUpgrade encapsulates a raw TCP, so it can be spliced.

HTTPUpgrade encapsulates a raw TCP, so it can be spliced.
@yuhan6665
Copy link
Member

Thanks @LGA1150 . Have you tested it? If so, can you ellaborate?

@LGA1150
Copy link
Author

LGA1150 commented Dec 25, 2025

好像有问题,开 debug log 显示启用了 splice,但是 strace 没看到。。

@Fangliding
Copy link
Member

这样没用吧 要触发tcp splice需要它的readfrom检测出给的reader是 net.TCPConn 这样子搞哪怕是给进去最后会发现是 ConnRF 会退化为普通copy

@LGA1150 LGA1150 marked this pull request as draft December 25, 2025 02:28
@LGA1150
Copy link
Author

LGA1150 commented Dec 25, 2025

知道了,需要把 ConnRF 内部的 conn 提出来才可以 splice,不过我不知道怎么改比较合适了

@Fangliding
Copy link
Member

需要加一个像xtls切换那样的逻辑 我觉得不是很划得来 因为这是客户端部分 瓶颈不在这

@Fangliding Fangliding closed this Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants