Streamable HTTP POST can stay open after request timeout or cancellation
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 50/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- java
- Ambito
- networking
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Java
- Stelle
- 3.8k
- Fork
- 1.1k
- Merge medio
- 1g 3h
- PR unite (30g)
- 38
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di modelcontextprotocol/java-sdk
-
Modern `HttpServletMcpTransport` does not check `Mcp-Name` when `params.name` or `params.uri` is not a JSON stringForse già presa @starryeye l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
modelcontextprotocol/java-sdk#1352 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Unknown tool error always says "Unknown tool: invalid_tool_name" instead of the name that was calledAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
modelcontextprotocol/java-sdk#1346 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
modelcontextprotocol/java-sdk#1345 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Tool result _meta is lost when the server automatically adds text content for structured outputApertaarea/server legacy P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
modelcontextprotocol/java-sdk#1330 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Client request handlers that complete empty send no JSON-RPC responseForse già presa @1fanwang l’ha presa 83 giorni fa. Apertaarea/client bug P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
modelcontextprotocol/java-sdk#1124 · 6 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di modelcontextprotocol/java-sdk
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
crash
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
account bug course exam iris lecture
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno