Repository navigation
Fix WebTransport session cleanup - #69708
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Late streams referencing removed sessions can trigger connection-wide cleanup and abort unrelated requests.
1 open finding
What changed in this PR
Fixes WebTransport session cleanup in Kestrel’s HTTP/3 connections.
Changes:
- Removes sessions when they close or abort.
- Snapshots sessions before connection-wide cleanup.
- Adds coverage for session removal.
| File | Description |
|---|---|
| src/Servers/Kestrel/test/InMemory.FunctionalTests/Http3/WebTransport/WebTransportSessionTests.cs | Tests graceful and aborted session removal. |
| src/Servers/Kestrel/Core/src/Internal/WebTransport/WebTransportSession.cs | Removes closed sessions from their connection. |
| src/Servers/Kestrel/Core/src/Internal/Http3/Http3Connection.cs | Adds removal, snapshot, and test-count helpers. |
🧠 Review effort: Balanced
Co-authored-by: Copilot App <[email protected]>
DeagleGross
approved these changes
Oct 9, 2026
BrennanConroy
temporarily deployed
to
copilot-pat-pool
October 13, 2026 17:21 — with
GitHub Actions
Inactive
BrennanConroy
temporarily deployed
to
copilot-pat-pool
October 13, 2026 17:22 — with
GitHub Actions
Inactive
BrennanConroy
temporarily deployed
to
copilot-pat-pool
October 13, 2026 17:23 — with
GitHub Actions
Inactive
BrennanConroy
temporarily deployed
to
copilot-pat-pool
October 13, 2026 17:24 — with
GitHub Actions
Inactive
BrennanConroy
temporarily deployed
to
copilot-pat-pool
October 13, 2026 17:25 — with
GitHub Actions
Inactive
BrennanConroy
temporarily deployed
to
copilot-pat-pool
October 13, 2026 17:26 — with
GitHub Actions
Inactive
Contributor
|
✅ No documentation PR was created. Confidence that documentation is needed: 5% No docs needed: internal bug fix for WebTransport session cleanup, with tests. No signals detected. Documentation surfaces considered
|
BrennanConroy
temporarily deployed
to
copilot-pat-pool
October 13, 2026 17:27 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fix WebTransport session cleanup
Summary of the changes (Less than 80 chars)
Description
Fixes WebTransport session cleanup.
WebTransportSessionfromHttp3Connectionwhen it closes gracefully or aborts.Fixes N/A