Skip to content

XDNS finalmask: Refine upload - #7095

Merged
RPRX merged 1 commit into
XTLS:mainfrom
LjhAUMEM:xdns21
Oct 8, 2026
Merged

RPRX merged 1 commit into
XTLS:mainfrom
LjhAUMEM:xdns21

Conversation

@LjhAUMEM

@LjhAUMEM LjhAUMEM commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

这是 #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

@LjhAUMEM
LjhAUMEM marked this pull request as draft October 6, 2026 07:41
@LjhAUMEM
LjhAUMEM marked this pull request as ready for review October 6, 2026 08:48
@RPRX RPRX changed the title xdns: refine upload XDNS finalmask: Refine upload Oct 8, 2026
@RPRX
RPRX merged commit 3718494 into XTLS:main Oct 8, 2026
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.
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.

2 participants