Skip to content

Move SharedHandler from GitProvider to each derived provider #86

Description

@matt-edmondson

GitProvider.SharedHandler is private static readonly on the base class rather than on each derived provider, so every provider deriving from it shares one SocketsHttpHandler.

That is currently equivalent to per-provider, because AzureDevOpsProvider is its only user and GitHubProvider has its own. Add a third provider and it silently shares Azure DevOps's connection pool.

Harmless in itself, since pools are keyed per host, but the sharing is accidental rather than intended, and the next provider author has no reason to notice it.

Found during the Phase 5b final fix re-review (#80).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions