Streamable HTTP POST can stay open after request timeout or cancellation
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 50/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- java
- 领域
- networking
调研方向
Start at mcp-core/src/main/java/io/modelcontextprotocol/client/transport/HttpClientStreamableHttpTransport.java around lines 545-591, where the request-scoped POST subscription is created. Reproduce with a local MCP test server that answers POST with text/event-stream and withholds the JSON-RPC response, then time out or dispose the caller and check whether the response body subscription is cancelled. Read related #1133 for pending response cleanup. Done means timeout or cancellation releases the POST and body while the client remains usable for other requests.
由索引模型根据 Issue 内容生成。
描述
Bug description
In MCP Java SDK 2.2.0, a request-scoped POST from the legacy HttpClientStreamableHttpTransport can remain active after its caller times out or cancels. The HTTP exchange has its own subscription, and cancellation of the caller does not reach it. Transport source in v2.2.0
Steps to reproduce
Have a local MCP test server answer a POST with text/event-stream and keep the stream open without sending the matching JSON-RPC response. Let the client request time out or dispose the request subscription while the stream is open. Observe whether the POST response body is cancelled.
Expected behavior
Timeout or cancellation releases the pending POST and its response body while leaving the client available for other requests.
Related: #1133 tracks cleanup of pending response entries.
- 主要语言
- Java
- 星标
- 3.8k
- 派生
- 1.1k
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 38
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
modelcontextprotocol/java-sdk 的其他 Issue
-
Modern `HttpServletMcpTransport` does not check `Mcp-Name` when `params.name` or `params.uri` is not a JSON string可能已有人在做 @starryeye 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
modelcontextprotocol/java-sdk#1352 · 1 条评论 ·
维护者通常 1 天内回复
-
Unknown tool error always says "Unknown tool: invalid_tool_name" instead of the name that was called未关闭
难度 1/5 1 小时以内 新手友好度 85/100
modelcontextprotocol/java-sdk#1346 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
modelcontextprotocol/java-sdk#1345 · 1 条评论 ·
维护者通常 1 天内回复
-
area/server legacy P3
难度 2/5 1-3 小时 新手友好度 72/100
modelcontextprotocol/java-sdk#1330 · 1 条评论 ·
维护者通常 1 天内回复
-
Client request handlers that complete empty send no JSON-RPC response可能已有人在做 @1fanwang 于 83 天前认领。 未关闭area/client bug P2
难度 2/5 1-3 小时 新手友好度 84/100
modelcontextprotocol/java-sdk#1124 · 6 条评论 ·
维护者通常 1 天内回复
查看 modelcontextprotocol/java-sdk 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
crash
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 74/100
-
account bug course exam iris lecture
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复