Repository navigation
Hysteria outbound: Fix UDP DATAGRAM truncation with ChromeParrot - #6788
Merged
Merged
Conversation
Contributor
|
服务端不可能接受 65536,改成 1500 就行,另外 |
Contributor
|
奇怪,刚写了个测试最大还是 1197,你这个客户端应用 ChromeParrot 后大小会改变的根据是哪里来的 |
Contributor
|
@Katze-942 你看下 #6792 的测试没问题这个就 close 吧
|
Contributor
Author
Done
1197 is the client-to-server limit, which is exactly what the test demonstrates. ChromeParrot also affects the reverse direction-from the server to the client-and in that direction I get 1243. |
Contributor
|
server 发 client 我得出的也是 1197,除非这玩意是动态变化的, |
LjhAUMEM
approved these changes
Sep 20, 2026
Contributor
|
哦,前面的测试写错了,客户端加入 ChromeParrot 后服务端真的改为 1243,如果没有 CP 才是原来的 1197 |
GFW-knocker
pushed a commit
to GFW-knocker/Xray-core
that referenced
this pull request
Oct 2, 2026
…S#6788) XTLS#6788 (comment) --------- Co-authored-by: LjhAUMEM <[email protected]> (cherry picked from commit d562d89) [GFW-knocker: import paths in the new test rewritten to github.com/GFW-knocker/Xray-core.]
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I had a proxy chain with Hysteria2 tunneled through another Hysteria2 connection. After updating to Xray-core v26.9.9, my requests started timing out.
As I understand it, ChromeParrot was introduced in Xray-core v26.9.8 and sets
max_datagram_frame_size = 65536. As a result, Hysteria can receive DATAGRAMs larger than the 1200-byte limit hard-coded in Xray.Only the first 1200 bytes were returned as a successfully read packet, while the rest was lost. This caused the nested Hysteria2 chain to time out.
I increased the receive buffer in
UDPReaderto the standard Xray buffer size. However, this will probably increase memory usage, and I am not sure what the best approach would be. I also changedInterConn.Readto returnio.ErrShortBufferwhen the destination buffer is too small instead of silently truncating the packet.