mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
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>