Skip to content

MCPClient keeps a lock for every server name it ever saw #84

Closed

Description

@gopaljigaur

attach and detach create a per name lock with setdefault and never remove it, including for names that were never attached; aclose() then detaches every name ever seen. 10,000 detaches of unknown names left 10,051 locks.

Proposal Drop a name's lock once the name is gone, or use one client wide lock if that is simpler.

Activity

  1. added
    bug
    on Oct 14, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions