RockteMQ-AI commented on issue #4650:
URL: 
https://github.com/apache/rocketmq-dashboard/issues/4650#issuecomment-5754856907

   **Issue Evaluation**
   
   Category: `bug` | Status: **Confirmed** | Severity: **Medium**
   
   The reported issue has been verified. The `rmqctl mcp stdio` command only 
catches `os.Interrupt` (SIGINT), so SIGTERM (the standard termination signal 
for MCP hosts) kills the process immediately without executing the deferred 
`MCPClientSession.Close()` cleanup.
   
   **Root Cause:** `App.Execute` creates a context that listens only for 
`os.Interrupt`, not `syscall.SIGTERM`. MCP hosts typically send SIGTERM to stop 
stdio servers.
   
   **Impact:** Server-side MCP sessions remain registered until they expire on 
their own, causing resource leaks and potential session exhaustion under 
frequent restarts.
   
   **Resolution:** PR #4649 correctly adds SIGTERM to the signal handling.
   
   ---
   *Automated evaluation by RockteMQ-AI*


-- 
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