FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix clean up sse disconnect event (not upgrade lib) by lcamhoa · Pull Request #703 · modelcontextprotocol/python-sdk · GitHub

Repository navigation

Fix clean up sse disconnect event (not upgrade lib) - #703

Closed
lcamhoa wants to merge 5 commits into
modelcontextprotocol:mainfrom
lcamhoa:main-sse-disconnect
Closed

lcamhoa wants to merge 5 commits into
modelcontextprotocol:mainfrom
lcamhoa:main-sse-disconnect

Conversation

lcamhoa commented May 13, 2025

Copy link
Copy Markdown

Motivation and Context

When SSE Connection disconnect , we should clean up memory by session id

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

lcamhoa force-pushed the main-sse-disconnect branch from d543469 to 7de20f5 Compare May 13, 2025 13:23

lcamhoa commented Jun 6, 2025

Copy link
Copy Markdown
Author

#612

lcamhoa closed this Jun 6, 2025

Copy link
Copy Markdown

Was the session clean-up included in #612? @lcamhoa @akash329d

After a session is disconnected:

The next message triggers a ConnectionClosedException, which makes sense since the session stream was closed?

I would have expected e.g. a "404 could not find session" error instead of an exception.

tomconte added a commit to tomconte/python-sdk that referenced this pull request Jul 31, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL