Files
ruflo/v3/@claude-flow/mcp/src
randRuFlo 536a7315bd fix(mcp): retire superseded sessions instead of refusing at maxSessions (#4674)
Every initialize created a session, but the server answers every client
through one currentSession, so a superseded session is never addressed again.
It still held a slot until the 30-minute expiry, and 100 short-lived SDK
clients (connect, listTools, close) were enough to make the next initialize
fail with "Maximum sessions (100) reached".

SessionManager.reserveCapacity(keepId) closes the least recently active
session other than keepId when the manager is full. The server calls it
before creating a session, keeping the current one. Capacity and expiry are
unchanged, and nothing is closed while there is room.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-04 02:07:21 -05:00
..
2026-01-05 22:28:29 +00:00
2026-01-05 22:05:06 +00:00
2026-01-05 22:28:29 +00:00
2026-01-05 22:28:29 +00:00