-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
Description
Bug description
When an SSE MCP server / proxy and the message channel is full, then messages can get stuck.
The error that appears is:
Failed to send pending message to client X (channel full)
https://discord.com/channels/1184987096302239844/1358845587189006367/1432784566783049769
Steps to reproduce
Connect a MCP client to an SSE server and send several messages. Disconnect before receiving the responses.
Additional context
The issue appears to be:
- When channel is full, ToolHive returns BEFORE clearing the pending messages
- The pending messages stay in the queue
- The next client that connects tries to receive the messages
- This creates a stuck state where:
- Pending messages accumulate indefinitely
- Every new client connection fails to drain them
- The error keeps repeating
- New messages keep getting added to the queue