[Server] Fix StreamableHttpTransport mutable state and clock - #45
Closed
chr-hertel wants to merge 2 commits into
Closed
chr-hertel wants to merge 2 commits into
chr-hertel wants to merge 2 commits into
Conversation
This was referenced Aug 22, 2026
…xtprotocol#483) Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 9.0.0 to 10.0.1. - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](astral-sh/setup-uv@v9.0.0...v10.0.1) --- updated-dependencies: - dependency-name: astral-sh/setup-uv dependency-version: 10.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chr-hertel
force-pushed
the
fix/issue-22-transport-state
branch
from
August 29, 2026 08:30
3ccda3f to
7450d39
Compare
Owner
Author
|
Closed upstream by modelcontextprotocol#487 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #22
handlePostRequest(), so a reused transport instance no longer replays the first POST's response (regression test: two sequential POSTs through one instance).$this->requestis no longer reassigned mid-flight; the middleware-processed request is threaded as a parameter and the property is nowreadonly.ClockInterfaceis injected (defaultNativeClock, matching the session stores) and used for pending-request timeouts, making the polling loop's timeout testable without a 120s sleep.The echo/flush SSE body in
CallbackStreamis intentionally left as-is — it is inherent to the CallbackStream design and rewriting it is out of scope here.Confidence: 9/10 — all changes are behavior-preserving state fixes covered by targeted regression tests that fail on the old code; full unit suite, php-cs-fixer, and phpstan are green.