Skip to content

Conversation

@findleyr
Copy link
Contributor

Address longstanding TODOs to clean up stream metadata after streams are complete:

  • Interpret a missing stream as a complete stream.
  • Remove the request->stream mapping when the request completes. Any writes after that point will fail as there can be no recipient.

Tested using examples/client/loadtest, and updating TestStreamableTransports to check in-band and out-of-band behavior.

Address longstanding TODOs to clean up stream metadata after streams are
complete:

- Interpret a missing stream as a complete stream.
- Remove the request->stream mapping when the request completes. Any
  writes after that point will fail as there can be no recipient.

Tested using examples/client/loadtest, and updating
TestStreamableTransports to check in-band and out-of-band behavior.
@findleyr findleyr requested review from jba and neild October 20, 2025 16:24
@findleyr findleyr merged commit 8aee8d3 into modelcontextprotocol:main Oct 20, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants