Skip to content

HttpClientFactory open many connections #43764

@gsGabriel

Description

@gsGabriel

I'm using .net core 2.2 and microsoft/dotnet:2.2-aspnetcore-runtime-alpine docker image and used AddHttpClient to create a typed HttpClient

The problem is several open socket connections, even using the factory
I replicated the problem in an application for testing in the following repository: https://github.com/gsGabriel/httpclient-factory/

the connections listed
image

Could someone tell me what is wrong with my implementation? I can't currently upgrade to .net core 3.0

Originally posted by @gsGabriel in #28842 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions