fix: comment out emitter.onCompletion/onTimeout session removal to keep sessions persistent
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 14m21s
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 14m21s
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user