zhang-arvin opened a new pull request, #6997:
URL: https://github.com/apache/shenyu/pull/6997

   Fixes #6833
   
   ### Problem
   `ShenyuStreamableHttpServerTransportProvider.handleInitializeRequest` 
creates a `StreamableHttpSessionTransport` with auto-generated UUID as 
sessionId, but stores sessions under `McpServerSession.getId()` (a different 
key). When `close()`/`closeGracefully()` calls `removeSession(this.sessionId)`, 
it uses the auto-UUID, so nothing gets removed — sessions leak forever.
   
   ### Fix
   After creating the session, sync the transport's sessionId to match the 
McpServerSession's ID via a new `setSessionId()` method, ensuring 
`close()`/`closeGracefully()` correctly removes the session.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to