Repository navigation
XDNS finalmask: Refine upload - #7095
Merged
Merged
Conversation
LjhAUMEM
marked this pull request as draft
October 6, 2026 07:41
LjhAUMEM
marked this pull request as ready for review
October 6, 2026 08:48
fanymagnet
pushed a commit
to fanymagnet/Xray-core
that referenced
this pull request
Oct 8, 2026
TaiLerV
pushed a commit
to TaiLerV/Xray-core-up
that referenced
this pull request
Oct 13, 2026
Sync the fork with upstream 7da5dae..v26.10.10 (13 commits). Conflict resolutions: - Routing and DNS Lua scripts (XTLS#6823): take them. The dispatcher picks routes through the fork's PickRouteTag, which bypassed the script hook upstream placed in PickRoute; PickRouteTag now runs the script too, and NeedsSniffingAttributes reports true while a script is loaded because a script can read attributes. Covered by script_fastpath_test.go and by upstream's TestRouterScriptDNSDispatcherReentry, which failed without it. - Logging: the Lua log module calls the fork's ShouldLog instead of upstream's GetSeverity; its tests save and restore the fork's handler snapshot and filter through Enabled. - Dispatcher: keep the ShouldLog guard and add upstream's error log for a failed route pick. - XDNS (XTLS#7095): take upstream's synchronous upload and its fragment manager without the per-client size counter. The fork's full-queue test becomes a test that every written packet reaches a resolver; the fragment-manager test checks entries only. - Hysteria (XTLS#7107): keep the fork's pool cleaner (docs/FORK.md); take only OmitMaxDatagramFrameSize: true, which the old date check already gave. - TLS client: keep session resumption in copyConfig and add upstream's GetClientCertificate bridge for MASQUE WARP. - go.mod: add gopher-lua (MIT), gopher-luar (MPL-2.0) and x509roots/fallback; keep golang.org/x/text v0.43.0. - Version stamp stays 26.10.6-2241 until the next fork release.
TaiLerV
pushed a commit
to TaiLerV/Xray-core-up
that referenced
this pull request
Oct 13, 2026
Upstream's synchronous upload (XTLS#7095) sends from WriteTo while holding the client mutex. A resolver write can block until the resolver is closed, as a conn behind dialerProxy does, and Close needs the same mutex to reach the resolvers, so Close and the stalled WriteTo waited on each other forever. WriteTo now checks for Close and sends without the mutex. A write that races Close reaches a closed resolver, which drops it; send already runs concurrently from the poll loop. TestClientCloseReleasesStalledWrite failed before this change: Close was still blocked after 5 s.
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.
这是 #6718 一开始测试上行的去除 sendloop 版本,考虑到可能有点激进结尾又加了回来,最近有空上 iperf3 测试好像也可以接受,就是下行还是老样子
before
#7090 (comment)
after
Connecting to host 127.0.0.1, port 1080 [ 5] local 127.0.0.1 port 2137 connected to 127.0.0.1 port 1080 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.02 sec 4.00 MBytes 33.0 Mbits/sec [ 5] 1.02-2.00 sec 2.88 MBytes 24.5 Mbits/sec [ 5] 2.00-3.00 sec 4.25 MBytes 35.7 Mbits/sec [ 5] 3.00-4.01 sec 5.12 MBytes 42.4 Mbits/sec [ 5] 4.01-5.00 sec 4.00 MBytes 34.0 Mbits/sec [ 5] 5.00-6.01 sec 4.62 MBytes 38.3 Mbits/sec [ 5] 6.01-7.01 sec 4.88 MBytes 41.0 Mbits/sec [ 5] 7.01-8.01 sec 3.88 MBytes 32.5 Mbits/sec [ 5] 8.01-9.00 sec 4.75 MBytes 40.4 Mbits/sec [ 5] 9.00-10.00 sec 4.88 MBytes 40.8 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate [ 5] 0.00-10.00 sec 43.2 MBytes 36.3 Mbits/sec sender [ 5] 0.00-10.18 sec 40.9 MBytes 33.7 Mbits/sec receiver iperf Done.Connecting to host 127.0.0.1, port 1080 Reverse mode, remote host 127.0.0.1 is sending [ 5] local 127.0.0.1 port 5904 connected to 127.0.0.1 port 1080 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 128 KBytes 1.04 Mbits/sec [ 5] 1.00-2.02 sec 384 KBytes 3.11 Mbits/sec [ 5] 2.02-3.01 sec 768 KBytes 6.35 Mbits/sec [ 5] 3.01-4.01 sec 768 KBytes 6.29 Mbits/sec [ 5] 4.01-5.01 sec 512 KBytes 4.18 Mbits/sec [ 5] 5.01-6.02 sec 256 KBytes 2.09 Mbits/sec [ 5] 6.02-7.01 sec 256 KBytes 2.12 Mbits/sec [ 5] 7.01-8.02 sec 512 KBytes 4.15 Mbits/sec [ 5] 8.02-9.01 sec 640 KBytes 5.28 Mbits/sec [ 5] 9.01-10.01 sec 1.00 MBytes 8.40 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate [ 5] 0.00-10.20 sec 8.00 MBytes 6.58 Mbits/sec sender [ 5] 0.00-10.01 sec 5.12 MBytes 4.30 Mbits/sec receiver iperf Done