feat(mcp): CIMD client identification for OAuth MCP - #84050
Conversation
૮ >ﻌ< ა ci reviewran on d31d671 — MCP CIMD auth
|
Related: implements the CIMD/client-identification portion of #75576 with published metadata and callback-port consistency coverage. |
feat(mcp): CIMD client identification for OAuth MCP
No blocking issues found. |
The _MAX_RESERVED_SOCKETS cap applied to pinned CIMD sockets too, so under heavy concurrency an ephemeral-reservation churn could close a parked pinned socket before _wait_for_callback adopted it, silently reopening the port-stealing window the pin exists to prevent (#22161). Eviction now skips the pinned range; it is already bounded by _CIMD_PORTS. Follow-up to the #84050 salvage.
The _MAX_RESERVED_SOCKETS cap applied to pinned CIMD sockets too, so under heavy concurrency an ephemeral-reservation churn could close a parked pinned socket before _wait_for_callback adopted it, silently reopening the port-stealing window the pin exists to prevent (#22161). Eviction now skips the pinned range; it is already bounded by _CIMD_PORTS. Follow-up to the #84050 salvage.
|
Merged via PR #89566 — your commit was cherry-picked onto current main (post mcp 2.x SDK migration) with your authorship preserved in git history, plus a small follow-up hardening the pinned-socket reservation against the eviction cap. Thanks for the excellent, thoroughly-tested implementation! |
The _MAX_RESERVED_SOCKETS cap applied to pinned CIMD sockets too, so under heavy concurrency an ephemeral-reservation churn could close a parked pinned socket before _wait_for_callback adopted it, silently reopening the port-stealing window the pin exists to prevent (NousResearch#22161). Eviction now skips the pinned range; it is already bounded by _CIMD_PORTS. Follow-up to the NousResearch#84050 salvage.
No description provided.