Symptom
A stateless StreamableHTTPServerTransport SSE response that contains 3 or more items hangs. The client never finishes the response. The linked issue does not give an exception class for the hang.
Evidence what you'll see
- The report says a zero-buffer memory stream blocks
send()until something callsreceive(), so one response holds up the next. - The paths in the report are under
mcp/server/streamable_http.py.
Why it happens
Per-request streams were unbuffered. The router writes the next SSE item only after the previous one is read, so concurrent items stall behind each other.
Affected versions
MCP Python SDK 1.23.3, Python 3.11, FastMCP 2.13.1. The linked issue does not name an operating system.
Fix steps
0 of 2 done
Your check marks stay in this browser only.
How to check it worked
- A stateless SSE response with 3 or more items completes instead of hanging in
streamable_http.py.
If it still fails
- The linked issue does not describe this hang on v2.0.0. On 1.23.3 the stall is the zero-buffer stream.
Sources and credit
Summarized in our own words from these public reports. Credit goes to their authors.
Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change
Hit an error we don't cover? Submit it