Title: `McpStreamableServerSession#responseStream` never closes when there is no handler registered for the request · Issue #1040 · modelcontextprotocol/java-sdk · GitHub
Open Graph Title: `McpStreamableServerSession#responseStream` never closes when there is no handler registered for the request · Issue #1040 · modelcontextprotocol/java-sdk
X Title: `McpStreamableServerSession#responseStream` never closes when there is no handler registered for the request · Issue #1040 · modelcontextprotocol/java-sdk
Description: If a client sends an invalid request, e.g. { "jsonrpc": "2.0", "method": "foo/bar", "id": "123-abc", "params": {} } the MCP async server never closes the response, and the request hangs indefinitely.
Open Graph Description: If a client sends an invalid request, e.g. { "jsonrpc": "2.0", "method": "foo/bar", "id": "123-abc", "params": {} } the MCP async server never closes the response, and the request hangs indefinitely.
X Description: If a client sends an invalid request, e.g. { "jsonrpc": "2.0", "method": "foo/bar", "id": "123-abc", "params": {} } the MCP asy...
Opengraph URL: https://github.com/modelcontextprotocol/java-sdk/issues/1040
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`McpStreamableServerSession#responseStream` never closes when there is no handler registered for the request","articleBody":"If a client sends an invalid request, e.g.\n\n```\n{\n\t\"jsonrpc\": \"2.0\",\n\t\"method\": \"foo/bar\",\n\t\"id\": \"123-abc\",\n\t\"params\": {}\n}\n```\n\nthe MCP async server never closes the response, and the request hangs indefinitely.","author":{"url":"https://github.com/Kehrlann","@type":"Person","name":"Kehrlann"},"datePublished":"2026-06-26T12:55:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1040/java-sdk/issues/1040"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0a60aa6a-7812-52d3-b668-39574896d6ac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E818:1D1BFA:2EFFCC7:3E19585:6A5CF65A |
| html-safe-nonce | 59de38e1a20f5b6b1080deb520c94d289fc3d0d2a12bfd01e5fef4b4ba2a4793 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODE4OjFEMUJGQToyRUZGQ0M3OjNFMTk1ODU6NkE1Q0Y2NUEiLCJ2aXNpdG9yX2lkIjoiNDMzMTg4MzQ1OTY5NzAyNDkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fadb468fecf8b553eb3ed9af8d74e65a7971f3b798eb9c36f6d6e60b09372f53 |
| hovercard-subject-tag | issue:4752148225 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/java-sdk/1040/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3353f5f6f8dd2c673589275e5e610e03a1764facca071a6048150be279305177/modelcontextprotocol/java-sdk/issues/1040 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3353f5f6f8dd2c673589275e5e610e03a1764facca071a6048150be279305177/modelcontextprotocol/java-sdk/issues/1040 |
| og:image:alt | If a client sends an invalid request, e.g. { "jsonrpc": "2.0", "method": "foo/bar", "id": "123-abc", "params": {} } the MCP async server never closes the response, and the request hangs indefinitely. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Kehrlann |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/modelcontextprotocol/java-sdk git https://github.com/modelcontextprotocol/java-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 919609219 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/java-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 919609219 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/java-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width