Skip to content

[Server] Keep inbound request intact when queueing an outbound one - #43

Closed
chr-hertel wants to merge 2 commits into
mainfrom
fix/issue-27-handlerequest-reassign
Closed

[Server] Keep inbound request intact when queueing an outbound one#43
chr-hertel wants to merge 2 commits into
mainfrom
fix/issue-27-handlerequest-reassign

Conversation

@chr-hertel

Copy link
Copy Markdown
Owner

handleRequest() reassigned $request to the outbound (id-less) request when a fiber suspends, so a failure while queueing it hit an uninitialized Request::$id in the catch blocks instead of answering under the inbound id. Renames the local and adds a regression test.

Closes #27

Confidence: 9/10 — one-line rename verified by a red/green regression test; full unit suite, cs-fixer, and phpstan pass.

dependabot Bot and others added 2 commits August 26, 2026 07:45
…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
chr-hertel force-pushed the fix/issue-27-handlerequest-reassign branch from dbed3db to 76889d7 Compare August 29, 2026 08:30
@chr-hertel

Copy link
Copy Markdown
Owner Author

Closed upstream by modelcontextprotocol#486

@chr-hertel chr-hertel closed this Sep 4, 2026
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.

[C4] Protocol::handleRequest() reassigns the request it is serving

1 participant