Closed
Description
Describe the bug
If the stdio streams close before responding to a request (i.e. the server dies), the pending request waits forever (or for the read timeout) instead of erroring.
To Reproduce
Steps to reproduce the behavior:
await session.initialize()
or some other request- in the server request handler, exit instead of responding to the request
- on the client, the
await
never resolves so the client hangs indefinitely
Expected behavior
The typescript SDK makes the pending requests return a -32000
"Connection closed" in this case
Metadata
Metadata
Assignees
Labels
No labels