Skip to content

VLESS Multiplex: explicit concurrency below 128 is silently replaced with 128 #7358

Closed

Description

@Medium1992

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?

Activity

  1. RPRX commented on Nov 9, 2026

    @RPRX
    Member

    因为有些客户端默认写 8 这种较小的值,只是暂时针对 XDRIVE 特化,以后可能改回去、分情况判断

  2. RPRX commented on Nov 9, 2026

    @RPRX
    Member

    其实先换成 XHTTP 也不是不行,你用 VLESS Mux 是为了跑 Encryption+RAW 吗

  3. Medium1992 commented on Nov 9, 2026

    @Medium1992
    ContributorAuthor

    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.

  4. RPRX commented on Nov 9, 2026

    @RPRX
    Member

    第一个的话可以用 XHTTP,第三个的话毕竟 #7159 我还没看,不过你们用 Mux 来解决的话确实本来就需要 fork

    至于第二个,Encryption+RAW 这种东西在俄罗斯、伊朗不太能过墙吧?

  5. anonymously-hidden commented on Nov 9, 2026

    @anonymously-hidden
    Contributor

    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 )

  6. WaveMeUp commented on Nov 9, 2026

    @WaveMeUp
    Contributor

    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?

  7. Fangliding commented on Nov 10, 2026

    @Fangliding
    Member

    其实8就8 无所谓
    假如用户连接在100条左右 最后也就十来条底层 最重要的是它可以减少连接的创建和销毁 这一般才是吃资源的大头 这十几条物理连接可以活很久

  8. RPRX commented on Nov 11, 2026

    @RPRX
    Member

    @Fangliding 十几条物理连接,XDRIVE 的话就是十几个 session,网盘 API 没这么多额度的

    可以改成只有 XDRIVE 是最低 128,其它组合和以前一样

  9. Fangliding commented on Nov 11, 2026

    @Fangliding
    Member

    我没看你们的设计 但是读写大头不应该在实际的数据传输么?物理连接稍多会加大量开销?

  10. RPRX commented on Nov 11, 2026

    @RPRX
    Member

    XDRIVE 是纯粹的过网盘,没有“聚合上层连接”的机制,上层每多一条连接就是一个 session,就要多很多文件和操作,所以需要上层自行 mux

    这与物理连接无关,物理连接只由 XMUX 决定

  11. Fangliding commented on Nov 11, 2026

    @Fangliding
    Member

    我的意思是8的mux (十几个 XDRIVE session) 和128 (一个 XDRIVE session)的区别应该不大 不是说对比不开
    假如要传10000个包 那就是一万次对网盘API的调用 拆成几百条新建死亡连接会多花我理解
    但是十来个长寿命mux session和1个长寿命mux session的网盘调用会很大不同吗? 除非单个session有很重很重的周边开销

  12. RPRX commented on Nov 11, 2026

    @RPRX
    Member

    假如要传10000个包 那就是一万次对网盘API的调用

    首先完全 Mux 可以大幅减少包的数量,同一周期内十几个包会被合并为一个包

    除非单个session有很重很重的周边开销

    是的,查看 #7352 中的 pdf,以及 #7208 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions