Skip to content

fix: leaked openStreams on failure in TUIC client - #2959

Merged
wwqgtxx merged 1 commit into
MetaCubeX:Alphafrom
AaronChen0:Tuic
Jul 10, 2026
Merged

fix: leaked openStreams on failure in TUIC client#2959
wwqgtxx merged 1 commit into
MetaCubeX:Alphafrom
AaronChen0:Tuic

Conversation

@AaronChen0

Copy link
Copy Markdown

The only decrement is scheduled in the NewQuicStreamConn close callback (line 290/298), reached only after a stream is successfully created. If OpenStream() fails, openStreams is leaked forever. After enough failures every DialContext returns TooManyOpenStreams even with a healthy connection.

@wwqgtxx
wwqgtxx merged commit 75a3ea8 into MetaCubeX:Alpha Jul 10, 2026
lux5am pushed a commit to lux5am/mihomo that referenced this pull request Jul 10, 2026
@AaronChen0
AaronChen0 deleted the Tuic branch July 11, 2026 08:48
kuno pushed a commit to kuno/mihomo that referenced this pull request Aug 12, 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