-
Notifications
You must be signed in to change notification settings - Fork 40
fix: stability hardening — resource leaks, crash vectors, graceful shutdown #2591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
b28caf5
0cc51c4
e83f911
7034279
d6214b6
6b582a1
0b4bfa1
05896ad
8debddb
8764dff
fc71715
c34e1cd
89d7ca5
e010c1f
a5e78fd
873ddda
95b685e
e4dc672
d8fff8e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -275,7 +275,6 @@ app.all("/:connectionId", async (c) => { | |||||||||||||
| // Connect server to transport | ||||||||||||||
| await server.connect(transport); | ||||||||||||||
|
|
||||||||||||||
| // Handle request and cleanup | ||||||||||||||
| return await transport.handleRequest(c.req.raw); | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1: Per-request MCP server is no longer closed after handling the proxy request, causing a resource leak on this hot path. Prompt for AI agents
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. deliberate for SSE connections, correct @tlgimenes ? |
||||||||||||||
| } catch (error) { | ||||||||||||||
| // Check if this is an auth error - if so, return appropriate 401 | ||||||||||||||
|
|
||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.