You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: propagate error when SSE stream ends without a response
When an SSE stream ends prematurely (e.g. due to a read timeout), the
client would hang forever waiting for a response that will never arrive.
Now _handle_sse_response checks the return value of _handle_reconnection
and, if reconnection did not deliver a response, sends a JSONRPCError
with INTERNAL_ERROR to the read stream. This unblocks the waiting
request and surfaces the failure as an MCPError to the caller.
Github-Issue: #1401
0 commit comments