Skip to content

fix(tuic): clean up connection child resources#49

Merged
Itsusinn merged 1 commit into
mainfrom
codex/fix-tuic-resource-leaks
Jun 25, 2026
Merged

fix(tuic): clean up connection child resources#49
Itsusinn merged 1 commit into
mainfrom
codex/fix-tuic-resource-leaks

Conversation

@Itsusinn

Copy link
Copy Markdown
Member

Summary

  • cancel per-connection spawned datagram/stream handler tasks when the QUIC connection ends
  • cancel and invalidate UDP association sessions during connection teardown so bridge tasks and outbound sockets are released
  • add regression coverage for child-task cancellation and UDP session teardown

Tests

  • cargo +nightly fmt --all
  • cargo test -p wind-tuic
  • cargo check -p tuic-server

Cancel spawned per-connection stream/datagram handlers when the parent connection ends, so TCP relay futures cannot outlive the QUIC connection.

Also cancel and invalidate UDP association sessions during connection teardown so outbound UDP bridge tasks and sockets are released promptly.

Assisted-by: Codex
@codspeed-hq

codspeed-hq Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 22 untouched benchmarks
⏩ 11 skipped benchmarks1


Comparing codex/fix-tuic-resource-leaks (d6bfa0f) with main (4003eae)

Open in CodSpeed

Footnotes

  1. 11 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@Itsusinn Itsusinn merged commit bae4657 into main Jun 25, 2026
17 checks passed
@Itsusinn Itsusinn deleted the codex/fix-tuic-resource-leaks branch June 25, 2026 11:21
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.

1 participant