René's URL Explorer Experiment


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

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

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

Description: The official Python SDK for Model Context Protocol servers and clients - Fix clean up sse disconnect event (not upgrade lib) by lcamhoa · Pull Request #703 · modelcontextprotocol/python-sdk

Open Graph Description: 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 ...

X Description: 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 ...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/703

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:9616202d-6413-89dd-61d9-fb8e4ad7333b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD578:43F78:3458A73:43FBEFE:6A5CE6EF
html-safe-nonceff18b108028374324c4ce075641f1404422e88c685b0e31c594de8b778395837
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTc4OjQzRjc4OjM0NThBNzM6NDNGQkVGRTo2QTVDRTZFRiIsInZpc2l0b3JfaWQiOiI5MDk0MzI2MDUyNTU5MDU0NTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc41fedd5b6ba433d75b1cfa8294865a8d960d9f1140a6523a3b79be02249dbf5
hovercard-subject-tagpull_request:2516163508
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/703/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7523b5e3dccb35bfe32cb3e20f5d1d25f93a00cb7a9eb9ff314f729f4ce3b0d5/modelcontextprotocol/python-sdk/pull/703
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7523b5e3dccb35bfe32cb3e20f5d1d25f93a00cb7a9eb9ff314f729f4ce3b0d5/modelcontextprotocol/python-sdk/pull/703
og:image:altMotivation 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 ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelcamhoa
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-cache
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/703#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F703
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F703
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/703
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/703
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/703
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/703
modelcontextprotocol https://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Fork 3.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Star 23.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 259 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 306 https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality 6 https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
Code https://github.com/modelcontextprotocol/python-sdk
Issues https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
lcamhoahttps://github.com/lcamhoa
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
lcamhoa:main-sse-disconnecthttps://github.com/lcamhoa/python-sdk/tree/main-sse-disconnect
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/703
Commits5 (5)https://github.com/modelcontextprotocol/python-sdk/pull/703/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/703/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/703/files
Fix clean up sse disconnect event (not upgrade lib)https://github.com/modelcontextprotocol/python-sdk/pull/703#top
lcamhoahttps://github.com/lcamhoa
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
lcamhoa:main-sse-disconnecthttps://github.com/lcamhoa/python-sdk/tree/main-sse-disconnect
https://github.com/lcamhoa
lcamhoahttps://github.com/lcamhoa
May 13, 2025https://github.com/modelcontextprotocol/python-sdk/pull/703#issue-3059558435
MCP Documentationhttps://modelcontextprotocol.io
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/703
Add unittest sse disconnecthttps://github.com/modelcontextprotocol/python-sdk/pull/703/commits/922461eb668760dc51ce9f5deaafc23f25550e9f
922461ehttps://github.com/modelcontextprotocol/python-sdk/pull/703/commits/922461eb668760dc51ce9f5deaafc23f25550e9f
https://github.com/lcamhoa
lcamhoahttps://github.com/lcamhoa
May 13, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/703#ref-pullrequest-3016678346
Fix handle sse disconnect event to free read_stream_writers[session_id] #582 https://github.com/modelcontextprotocol/python-sdk/pull/582
Fix clean up memory when sse disconnecthttps://github.com/modelcontextprotocol/python-sdk/pull/703/commits/7de20f550d58b0c3d2b2345718a7326ebff5f3e5
7de20f5https://github.com/modelcontextprotocol/python-sdk/pull/703/commits/7de20f550d58b0c3d2b2345718a7326ebff5f3e5
https://github.com/lcamhoa
lcamhoahttps://github.com/lcamhoa
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/d54346978215c7c856bd41d87c7ed5022d159782..7de20f550d58b0c3d2b2345718a7326ebff5f3e5
d543469https://github.com/modelcontextprotocol/python-sdk/commit/d54346978215c7c856bd41d87c7ed5022d159782
7de20f5https://github.com/modelcontextprotocol/python-sdk/commit/7de20f550d58b0c3d2b2345718a7326ebff5f3e5
Compare https://github.com/modelcontextprotocol/python-sdk/compare/d54346978215c7c856bd41d87c7ed5022d159782..7de20f550d58b0c3d2b2345718a7326ebff5f3e5
May 13, 2025 13:23https://github.com/modelcontextprotocol/python-sdk/pull/703#event-17635606252
lcamhoahttps://github.com/lcamhoa
May 13, 2025 20:24https://github.com/modelcontextprotocol/python-sdk/pull/703#commits-pushed-46f6e0a
https://github.com/lcamhoa
Merge branch 'main' into main-sse-disconnecthttps://github.com/modelcontextprotocol/python-sdk/pull/703/commits/46f6e0a65f69bb5d43565bb04bceb7b83a53e663
46f6e0ahttps://github.com/modelcontextprotocol/python-sdk/pull/703/commits/46f6e0a65f69bb5d43565bb04bceb7b83a53e663
https://github.com/lcamhoa
Merge branch 'main' into main-sse-disconnecthttps://github.com/modelcontextprotocol/python-sdk/pull/703/commits/7536dd98558daae8594be662aa8ac46f7901be7a
7536dd9https://github.com/modelcontextprotocol/python-sdk/pull/703/commits/7536dd98558daae8594be662aa8ac46f7901be7a
https://github.com/lcamhoa
Merge branch 'main' into main-sse-disconnecthttps://github.com/modelcontextprotocol/python-sdk/pull/703/commits/beeccb0a4e1c3b92094b39b2aa0304f37debd739
beeccb0https://github.com/modelcontextprotocol/python-sdk/pull/703/commits/beeccb0a4e1c3b92094b39b2aa0304f37debd739
https://github.com/lcamhoa
lcamhoahttps://github.com/lcamhoa
Jun 6, 2025https://github.com/modelcontextprotocol/python-sdk/pull/703#issuecomment-2947673329
#612https://github.com/modelcontextprotocol/python-sdk/pull/612
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/703
https://github.com/lcamhoa
lcamhoahttps://github.com/lcamhoa
Jun 6, 2025https://github.com/modelcontextprotocol/python-sdk/pull/703#event-18014668101
https://github.com/tomconte
tomcontehttps://github.com/tomconte
Jul 30, 2025https://github.com/modelcontextprotocol/python-sdk/pull/703#issuecomment-3135895408
#612https://github.com/modelcontextprotocol/python-sdk/pull/612
@lcamhoahttps://github.com/lcamhoa
@akash329dhttps://github.com/akash329d
https://private-user-images.githubusercontent.com/199027/472453845-bbebc760-475a-47e4-a78a-b739f6c2d003.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODQ0NzM2MjcsIm5iZiI6MTc4NDQ3MzMyNywicGF0aCI6Ii8xOTkwMjcvNDcyNDUzODQ1LWJiZWJjNzYwLTQ3NWEtNDdlNC1hNzhhLWI3MzlmNmMyZDAwMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzR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W50LXR5cGU9aW1hZ2UlMkZwbmcifQ.psq7Pf0E4fYw_PV00-sxGE-k8WVIEN3KAApn72890S4
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/703
tomcontehttps://github.com/tomconte
Jul 31, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/703#ref-commit-20e6879
https://github.com/tomconte
Apply sse fix from upstreamhttps://github.com/tomconte/python-sdk/commit/20e68790e0f73f0d26271c563cdaeff3d324cf9f
modelcontextprotocol#703https://github.com/modelcontextprotocol/python-sdk/pull/703
20e6879https://github.com/tomconte/python-sdk/commit/20e68790e0f73f0d26271c563cdaeff3d324cf9f
https://github.com/tomconte
tomcontehttps://github.com/tomconte
Aug 1, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/703#ref-issue-3282997229
SSE: ConnectionClosed exception after session disconnect #1227 https://github.com/modelcontextprotocol/python-sdk/issues/1227
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F703
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/703
https://github.com/lcamhoa
https://github.com/tomconte
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.