Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue where HTTP2 connection could be scavenged but not disposed #62225

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

geoffkizer
Copy link
Contributor

@geoffkizer geoffkizer commented Dec 1, 2021

When scavenging connections, if we end up scavenging at least one HTTP/1.1 connection and at least one HTTP2 connection for the same connection pool (i.e. origin server), the first HTTP2 connection will be removed from the connection list but not disposed, leading to a connection leak.

Having both HTTP/1.1 and HTTP2 connections to the same server is not common, but if this happens the impact is pretty bad.

@ghost
Copy link

ghost commented Dec 1, 2021

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

Issue Details

null

Author: geoffkizer
Assignees: -
Labels:

area-System.Net.Http

Milestone: -

@geoffkizer geoffkizer added this to the 7.0.0 milestone Dec 1, 2021
@geoffkizer geoffkizer requested a review from a team December 1, 2021 03:15
@stephentoub
Copy link
Member

Looks like this was introduced in July for .NET 6. We should probably service it.

@stephentoub stephentoub merged commit e9c6c04 into dotnet:main Dec 1, 2021
@stephentoub
Copy link
Member

/backport to release/6.0

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2021

Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1526252602

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.

4 participants