| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Remove hop-by-hop Connection headers from Web Standard Streamable HTTP responses so concrete HTTP adapters can advertise their actual connection lifetime.
🦋 Changeset detectedLatest commit: 81a5558 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Sorry, something went wrong.
|
@modelcontextprotocol/client
npm i https://pkg.pr.new/@modelcontextprotocol/client@2554
npm i https://pkg.pr.new/@modelcontextprotocol/codemod@2554
npm i https://pkg.pr.new/@modelcontextprotocol/core@2554
npm i https://pkg.pr.new/@modelcontextprotocol/server@2554
npm i https://pkg.pr.new/@modelcontextprotocol/server-legacy@2554
npm i https://pkg.pr.new/@modelcontextprotocol/express@2554
npm i https://pkg.pr.new/@modelcontextprotocol/fastify@2554
npm i https://pkg.pr.new/@modelcontextprotocol/hono@2554
npm i https://pkg.pr.new/@modelcontextprotocol/node@2554 commit: 81a5558 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Fixes #2553.
Why
A web-standard Response does not own the underlying connection and cannot know its lifetime. Setting Connection: keep-alive in the transport suppresses concrete HTTP/1.1 servers from advertising their real Keep-Alive: timeout=..., and Connection is forbidden on HTTP/2.
Omitting the header does not disable persistent connections. Node HTTP/1.1 can emit its own matching Connection and Keep-Alive headers, while HTTP/2 and other Fetch adapters remain free to apply their own policy. This adds no Connection: close, retry, or timeout behavior.
Verification
Interaction with #2541
#2541 edits the same three header objects to add SSE heartbeat and anti-buffering behavior. The changes are semantically independent: retain its heartbeat and X-Accel-Buffering changes, while omitting only the hop-by-hop Connection header.