From 36cc9ff5105a69ba1a17b020150a32f472436558 Mon Sep 17 00:00:00 2001 From: Viacheslav Osadchiy Date: Wed, 11 Nov 2026 10:37:36 +0300 Subject: [PATCH] VLESS Multiplex (mux.cool): Raise maxConcurrency to 128 only for XDRIVE (#7375) Closes https://github.com/XTLS/Xray-core/issues/7358#issuecomment-6785007489 and https://github.com/XTLS/Xray-core/pull/7365#issuecomment-6785026850 --------- Co-authored-by: Ivan Zorin --- app/proxyman/outbound/handler.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/proxyman/outbound/handler.go b/app/proxyman/outbound/handler.go index 4c3b16a12..91952fd1d 100644 --- a/app/proxyman/outbound/handler.go +++ b/app/proxyman/outbound/handler.go @@ -122,7 +122,10 @@ func NewHandler(ctx context.Context, config *core.OutboundHandlerConfig) (outbou if config.Concurrency < 0 { h.mux = &mux.ClientManager{Enabled: false} } - if config.Concurrency >= 0 && config.Concurrency <= 128 { + if config.Concurrency == 0 { + config.Concurrency = 8 // same as before + } + if config.Concurrency > 0 && config.Concurrency < 128 && h.streamSettings != nil && h.streamSettings.ProtocolName == "xdrive" { config.Concurrency = 128 } if config.Concurrency > 0 {