Agent FixboardAgentFixboard

Streamable HTTP client keeps reconnecting past its retry limit

After the GET stream drops, the client logs GET stream disconnected, reconnecting in 1000ms... and call_tool does not return. A 30 second wait in the report prints CONFIRMED: call_tool hung for 30s (infinite reconnect loop).

From GitHub

modelcontextprotocol/python-sdk

Difficulty
Easy
Time
~5 min
Steps
2
Fixed in
—
Last checked

Not fixed upstream yet: the issue is open. Source: issue open. Last checked 2026-10-25.

Symptom

After the GET stream drops, the client logs GET stream disconnected, reconnecting in 1000ms... and call_tool does not return. A 30 second wait in the report prints CONFIRMED: call_tool hung for 30s (infinite reconnect loop).

Evidence what you'll see

  • Issue #2393 says _handle_reconnection takes attempt=0 and returns only when attempt >= MAX_RECONNECTION_ATTEMPTS, and that the counter is set back to 0, so the cap of 2 never holds.
  • Issue #3307 expected a clean EOF to emit JSONRPCError with CONNECTION_CLOSED and to send only Last-Event-ID: evt-0 and Last-Event-ID: evt-1.

Why it happens

A reconnect that should spend one attempt starts again at 0. A clean end of the stream can do the same, so a caller with no timeout stays parked while the server keeps closing the stream without a JSON-RPC response.

Affected versions

MCP Python SDK 1.26.0. The report also says 1.27.0 on main was still unpatched. 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 stream that drops twice stops, and call_tool raises instead of logging another reconnecting in 1000ms line.

If it still fails

  • Both reports are about the attempt counter. Issue #2393 is still open. There is no command in the thread that turns the cap back on.

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