Skip to content

XDRIVE transport: Prefer h2 (Chrome CH by default); End stalled requests; Other small changes - #7181

Merged
RPRX merged 3 commits into
XTLS:mainfrom
4RH1T3CT0R7:feat/xdrive-h2-utls
Oct 17, 2026
Merged

RPRX merged 3 commits into
XTLS:mainfrom
4RH1T3CT0R7:feat/xdrive-h2-utls

Conversation

@4RH1T3CT0R7

Copy link
Copy Markdown
Contributor

builds on #7170. as RPRX asked, h2 + utls by default and h1 the DoH way from #7140: xdrive dials utls chrome even without tlsSettings and one http.Transport speaks what the server picked, so security tls against google works again (main offers h2 in the hello, then speaks h1 and gets http2_handshake_failed). a host gets one connection, a host that answers over h1 moves to a transport with up to 32. the handshake runs inside the dial with the stall limit, so a hung one can't hold the host. alpn http/1.1 without echConfigList gets a warning, the dead REALITY branch and x/net http2 are gone

from a VPS to googleapis, 32 parallel 4 MiB puts and gets, 2-3 runs each, main vs this: at ~1 ms put 17.2 to 18.8 MiB/s, get 17.0 to 20.7. with 150 ms added the get still gains (16.8 to 19.6) but the put falls from 10.8 to 3.4, google gives a connection 1 MiB of window, and 4 h2 connections bring it back to 9-11. @RPRX keep one connection or allow a few?

@RPRX

RPRX commented Oct 17, 2026

Copy link
Copy Markdown
Member

@4RH1T3CT0R7 XMUX 加进来后在 Google Drive 上的默认 maxConnections 可以调大些

@RPRX

RPRX commented Oct 17, 2026

Copy link
Copy Markdown
Member

还需要支持 h3

@RPRX RPRX changed the title XDRIVE transport: Use h2 + uTLS by default XDRIVE transport: Prefer h2 (Chrome CH by default); End stalled requests; Other small changes Oct 17, 2026
@RPRX
RPRX merged commit 3834e50 into XTLS:main Oct 17, 2026
RPRX pushed a commit that referenced this pull request Oct 21, 2026
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