fix: send SSE keep-alive comment frames from Streamable HTTP server transport (v1.x) (#2538)
This commit is contained in:
parent
69749aa508
commit
1dad2634ce
1 changed files with 252 additions and 0 deletions
6
.changeset/streamable-http-sse-keepalive.md
Normal file
6
.changeset/streamable-http-sse-keepalive.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
'@modelcontextprotocol/sdk': patch
|
||||
---
|
||||
|
||||
`StreamableHTTPServerTransport` and `WebStandardStreamableHTTPServerTransport` now write SSE keep-alive comment frames (`: keepalive`) to open SSE streams so idle connections (e.g. the standalone GET stream, or a POST stream during a long-running tool call) are not killed by
|
||||
intermediaries or server idle timeouts. Configurable via the new `keepAliveMs` option (default 15000; set 0 to disable).
|
||||
Loading…
Reference in a new issue