Skip to content

Do not create a new HttpClient for every Transmission #594

@cwe1ss

Description

@cwe1ss

https://github.com/Microsoft/ApplicationInsights-dotnet/blob/develop/src/Core/Managed/Shared/Channel/Transmission.cs#L62 creates a new HttpClient instance for every transmission.

See e.g. https://aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/ for why this is wrong (it creates too many sockets and they stay open for too long).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions