You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VLESS Multiplex: explicit concurrency below 128 is silently replaced with 128 #7358
Since bb335c6 any concurrency from 1 to 128 becomes 128, so a value set on purpose is ignored without a warning. Some use mux over raw/TCP with a small concurrency (e.g. 8) to cut the number of connections without putting too many sessions behind one TCP connection: one loss stalls all of them, and one drop closes all of them. Could only the default (0) become 128, and explicit values be kept?
Yes, Encryption+RAW is one of them. Where a small concurrency is used:
RAW + REALITY without Vision: fewer TCP connections and REALITY handshakes to one server.
RAW + VLESS Encryption: the same, fewer connections and handshakes.
XHTTP packet-up with a server that takes Mux.Cool TCP sessions over XHTTP and keeps an idle downlink alive with Mux.Cool KeepAlive frames (our fork). All sessions there share one HTTP/2 stream, so 128 behind one stream is a lot.
In all of these a small value bounds how many sessions one loss stalls and one drop closes.
the Only reason I added mux-resume for my own repo was because of this ridiculous losts of mux ( though I mainly wanted to decouple sessions ); people might ask, why not setting concurrency to the highest number when the actual mux tunnel is designed to bring more connections within the one? ; and the most probable reason is because mux has no recovery. I've discussed this before & finally decided to implement it myself when i got rejected. ( now the flaws of mux become more obvious when Trying to improve it for other protocols; an optional mux-resume is needed )
Commit bb335c6 clearly says "Increase default maxConcurrency to 128" but instead is overwrites ANY concurrency value, why? Just because XDRIVE and XDNS requires it? It doesn't make any sense, why should we sacrifice other transports?
Reacted by TrustCane, fauxrock, Nikita Belan and orkhv
Activity
RPRX commentedon Nov 9, 2026
因为有些客户端默认写 8 这种较小的值,只是暂时针对 XDRIVE 特化,以后可能改回去、分情况判断RPRX commentedon Nov 9, 2026
其实先换成 XHTTP 也不是不行,你用 VLESS Mux 是为了跑 Encryption+RAW 吗Medium1992 commentedon Nov 9, 2026
Yes, Encryption+RAW is one of them. Where a small
concurrencyis used:packet-upwith a server that takes Mux.Cool TCP sessions over XHTTP and keeps an idle downlink alive with Mux.Cool KeepAlive frames (our fork). All sessions there share one HTTP/2 stream, so 128 behind one stream is a lot.In all of these a small value bounds how many sessions one loss stalls and one drop closes.
RPRX commentedon Nov 9, 2026
第一个的话可以用 XHTTP,
第三个的话毕竟 #7159 我还没看,不过你们用 Mux 来解决的话确实本来就需要 fork至于第二个,Encryption+RAW 这种东西在俄罗斯、伊朗不太能过墙吧?anonymously-hidden commentedon Nov 9, 2026
the Only reason I added mux-resume for my own repo was because of this ridiculous losts of mux ( though I mainly wanted to decouple sessions ); people might ask, why not setting concurrency to the highest number when the actual mux tunnel is designed to bring more connections within the one? ; and the most probable reason is because mux has no recovery. I've discussed this before & finally decided to implement it myself when i got rejected.
( now the flaws of mux become more obvious when Trying to improve it for other protocols; an optional mux-resume is needed )WaveMeUp commentedon Nov 9, 2026
Commit bb335c6 clearly says "Increase default maxConcurrency to 128" but instead is overwrites ANY concurrency value, why? Just because XDRIVE and XDNS requires it? It doesn't make any sense, why should we sacrifice other transports?
Fangliding commentedon Nov 10, 2026
其实8就8 无所谓
假如用户连接在100条左右 最后也就十来条底层 最重要的是它可以减少连接的创建和销毁 这一般才是吃资源的大头 这十几条物理连接可以活很久
RPRX commentedon Nov 11, 2026
@Fangliding 十几条物理连接,
XDRIVE 的话就是十几个 session,网盘 API 没这么多额度的可以改成只有 XDRIVE 是最低 128,其它组合和以前一样
Fangliding commentedon Nov 11, 2026
我没看你们的设计 但是读写大头不应该在实际的数据传输么?物理连接稍多会加大量开销?
RPRX commentedon Nov 11, 2026
XDRIVE 是纯粹的过网盘,没有“聚合上层连接”的机制,上层每多一条连接就是一个 session,就要多很多文件和操作,所以需要上层自行 mux
这与物理连接无关,物理连接只由 XMUX 决定
VLESS Multiplex (mux.cool): Raise concurrency to 128 only for XDRIVE,…
VLESS Multiplex (mux.cool): Raise concurrency to 128 only for XDRIVE,…
Fangliding commentedon Nov 11, 2026
我的意思是8的mux (十几个 XDRIVE session) 和128 (一个 XDRIVE session)的区别应该不大 不是说对比不开
假如要传10000个包 那就是一万次对网盘API的调用 拆成几百条新建死亡连接会多花我理解
但是十来个长寿命mux session和1个长寿命mux session的网盘调用会很大不同吗? 除非单个session有很重很重的周边开销
RPRX commentedon Nov 11, 2026
首先完全 Mux 可以大幅减少包的数量,同一周期内十几个包会被合并为一个包
是的,查看 #7352 中的 pdf,以及 #7208 (comment)
VLESS Multiplex (mux.cool): Raise maxConcurrency to 128 only for XDRI…
XDRIVE transport: VLESS Multiplex's maxConcurrency is at least 128, m…