Skip to content

Consider keying the HTTP connection pool based on the supplied credential #132267

Description

@MihaZupan

Currently, the connection pool is keyed off of the type of connection / host / port / SNI / Proxy URL.
Credentials are resolved after the fact (once we already have a connection), so they don't impact how we partition connections.
With NTLM, this can have unintended consequences, so we should look at how feasible it is to make this work.

We made a previous change to special-case the CredentialCache.DefaultCredentials in #303 to include the identity as part of the partitioning key, but this doesn't work for any sort of custom credential type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Net.HttpenhancementProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions