Skip to content

SOCKS inbound: Serialize concurrent mux responses - #7301

Closed
Ar-Atharifard wants to merge 1 commit into
XTLS:mainfrom
Ar-Atharifard:fix/socks-mux-writer
Closed

Ar-Atharifard wants to merge 1 commit into
XTLS:mainfrom
Ar-Atharifard:fix/socks-mux-writer

Conversation

@Ar-Atharifard

Copy link
Copy Markdown

Smaller revision of #7297.

SOCKS passes an unsynchronized writer to DispatchLink. Reuse BufferedWriter with buffering disabled to protect concurrent mux responses while keeping immediate writes.

VLESS and mux code are unchanged. Includes one WebSocket regression that fails before the fix and passes 20 repetitions with -race.

Reuse BufferedWriter with buffering disabled before DispatchLink. Add a concurrent-response regression over WebSocket.
@Fangliding

Fangliding commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

这样还是有点怪 应该没人在socks5上使用mux吧(为什么不vless) 可以先缓缓

@Fangliding Fangliding closed this Oct 31, 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