Skip to content

[QUIC] Fix QUIC stream handle leak - #56550

Merged
CarnaViire merged 1 commit into
dotnet:mainfrom
CarnaViire:fix-quic-stream-handle-leak
Jul 30, 2021
Merged

CarnaViire merged 1 commit into
dotnet:mainfrom
CarnaViire:fix-quic-stream-handle-leak

Conversation

@CarnaViire

Copy link
Copy Markdown
Member

Discovered that while investigating stress tests failures. We had this code in the end of HandleEventShutdownComplete, but if we received a flag that connection was closed in that event, we branched early to HandleEventConnectionClose which lacked this logic.

Fixes #56151

@ghost

ghost commented Jul 29, 2021

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Discovered that while investigating stress tests failures. We had this code in the end of HandleEventShutdownComplete, but if we received a flag that connection was closed in that event, we branched early to HandleEventConnectionClose which lacked this logic.

Fixes #56151

Author: CarnaViire
Assignees: -
Labels:

area-System.Net.Quic

Milestone: -

@geoffkizer

Copy link
Copy Markdown
Contributor

This is one of the causes of the leak I've seen in HTTP3 unit tests. Good to get this fixed.

@CarnaViire

Copy link
Copy Markdown
Member Author

/azp run runtime-libraries stress-http

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@wfurt wfurt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CarnaViire

Copy link
Copy Markdown
Member Author

Just for the record, stress failures are known issue #56310. I hoped this could mitigate it at least a little bit, but it did not.

@CarnaViire
CarnaViire merged commit acb6b9b into dotnet:main Jul 30, 2021
@CarnaViire
CarnaViire deleted the fix-quic-stream-handle-leak branch July 30, 2021 12:58
@karelz karelz added this to the 6.0.0 milestone Aug 17, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Sep 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[QUIC] Memory leak when stream is finalized

4 participants