fix: comment out emitter.onCompletion/onTimeout session removal to keep sessions persistent
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 14m21s

This commit is contained in:
kimhyungsik
2026-07-23 10:33:44 +09:00
parent 3c183e901b
commit 6893bb6b35

View File

@@ -95,8 +95,8 @@ public class CustomWebMvcSseServerTransportProvider implements McpServerTranspor
McpServerSession session = sessionFactory.create(sessionTransport); McpServerSession session = sessionFactory.create(sessionTransport);
sessions.put(sessionId, session); sessions.put(sessionId, session);
emitter.onCompletion(() -> sessions.remove(sessionId)); // emitter.onCompletion(() -> sessions.remove(sessionId));
emitter.onTimeout(() -> sessions.remove(sessionId)); // emitter.onTimeout(() -> sessions.remove(sessionId));
new Thread(() -> { new Thread(() -> {
try { try {