René's URL Explorer Experiment


Title: Fix handle sse disconnect event to free read_stream_writers[session_id] by lcamhoa · Pull Request #582 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Fix handle sse disconnect event to free read_stream_writers[session_id] by lcamhoa · Pull Request #582 · modelcontextprotocol/python-sdk

X Title: Fix handle sse disconnect event to free read_stream_writers[session_id] by lcamhoa · Pull Request #582 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Fix handle sse disconnect event to free read_stream_writers[session_id] by lcamhoa · Pull Request #582 · modelcontextprotocol/python-sdk

Open Graph Description: Motivation and Context When SSE Connection disconnect , we should free the _read_stream_writers How Has This Been Tested? Test with inspector -> connect -> disconnect Breaking Changes Ty...

X Description: Motivation and Context When SSE Connection disconnect , we should free the _read_stream_writers How Has This Been Tested? Test with inspector -> connect -> disconnect Breaking Cha...

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

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:a78aa30d-a876-2f77-36fa-fbdbe9eb2c67
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9E2E:2B9CDD:508554E:6B7ABE3:6A5DC198
html-safe-noncecad210b1b75de591dc45399bbaa1eedf21071724ae396174affe72e1275151da
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTJFOjJCOUNERDo1MDg1NTRFOjZCN0FCRTM6NkE1REMxOTgiLCJ2aXNpdG9yX2lkIjoiNjQ1MDk0MTk4ODc1NDUzODkwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfa1231eabe719820b9c4b0704f2b19a22c858a6be67f5ef422a8c42bac1d0e40
hovercard-subject-tagpull_request:2478596200
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/582/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/19ea382436ba261e88b7ca30e6294cb791cf99cadcebc31f73904a222a616f28/modelcontextprotocol/python-sdk/pull/582
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/19ea382436ba261e88b7ca30e6294cb791cf99cadcebc31f73904a222a616f28/modelcontextprotocol/python-sdk/pull/582
og:image:altMotivation and Context When SSE Connection disconnect , we should free the _read_stream_writers How Has This Been Tested? Test with inspector -> connect -> disconnect Breaking Changes Ty...
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/582#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F582
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%2F582
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/582
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/582
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/582
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/582
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 263 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 309 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:v1.3.xhttps://github.com/modelcontextprotocol/python-sdk/tree/v1.3.x
lcamhoa:sse-disconnecthttps://github.com/lcamhoa/python-sdk/tree/sse-disconnect
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/582
Commits9 (9)https://github.com/modelcontextprotocol/python-sdk/pull/582/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/582/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/582/files
Fix handle sse disconnect event to free read_stream_writers[session_id]https://github.com/modelcontextprotocol/python-sdk/pull/582#top
lcamhoahttps://github.com/lcamhoa
modelcontextprotocol:v1.3.xhttps://github.com/modelcontextprotocol/python-sdk/tree/v1.3.x
lcamhoa:sse-disconnecthttps://github.com/lcamhoa/python-sdk/tree/sse-disconnect
https://github.com/lcamhoa
lcamhoahttps://github.com/lcamhoa
Apr 24, 2025https://github.com/modelcontextprotocol/python-sdk/pull/582#issue-3016678346
MCP Documentationhttps://modelcontextprotocol.io
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/582
Fix handle sse disconnecthttps://github.com/modelcontextprotocol/python-sdk/pull/582/commits/f7d33ad00eb8fb1311d1480762451d50bb917bc9
f7d33adhttps://github.com/modelcontextprotocol/python-sdk/pull/582/commits/f7d33ad00eb8fb1311d1480762451d50bb917bc9
https://github.com/lcamhoa
lcamhoahttps://github.com/lcamhoa
Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/582#ref-pullrequest-2995880517
perf: clean up SSE session writer #518 https://github.com/modelcontextprotocol/python-sdk/pull/518
Add close read write streamhttps://github.com/modelcontextprotocol/python-sdk/pull/582/commits/e8e0491e24c0507537abbeae4d4893cd12f4ba51
e8e0491https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/e8e0491e24c0507537abbeae4d4893cd12f4ba51
https://github.com/Kludex
Kludexhttps://github.com/Kludex
Apr 25, 2025https://github.com/modelcontextprotocol/python-sdk/pull/582#issuecomment-2829581686
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/582
Add unittest sse disconnecthttps://github.com/modelcontextprotocol/python-sdk/pull/582/commits/c7ef8a201b424113799892e2d9902952bb3efc22
c7ef8a2https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/c7ef8a201b424113799892e2d9902952bb3efc22
https://github.com/lcamhoa
lcamhoahttps://github.com/lcamhoa
Apr 26, 2025https://github.com/modelcontextprotocol/python-sdk/pull/582#issuecomment-2832146693
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/582
https://github.com/ihrpr
ihrprhttps://github.com/ihrpr
Apr 29, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/582#pullrequestreview-2802837817
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/582/files/c7ef8a201b424113799892e2d9902952bb3efc22
src/mcp/server/sse.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/582/files/c7ef8a201b424113799892e2d9902952bb3efc22#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
ihrprhttps://github.com/ihrpr
Apr 29, 2025https://github.com/modelcontextprotocol/python-sdk/pull/582#discussion_r2065980899
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#586https://github.com/modelcontextprotocol/python-sdk/pull/586
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/582
lcamhoahttps://github.com/lcamhoa
May 6, 2025https://github.com/modelcontextprotocol/python-sdk/pull/582#discussion_r2074717771
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
herehttps://github.com/modelcontextprotocol/python-sdk/pull/586/files#r2074716958
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/582
https://github.com/ihrpr
ihrprhttps://github.com/ihrpr
2025-03-26 spec releasehttps://github.com/modelcontextprotocol/python-sdk/milestone/6
Apr 29, 2025https://github.com/modelcontextprotocol/python-sdk/pull/582#event-17452112334
Upgrade sse-starlette to fix type annotationhttps://github.com/modelcontextprotocol/python-sdk/pull/582/commits/bda260af2d746dd1771050c755817a3161b007f4
bda260ahttps://github.com/modelcontextprotocol/python-sdk/pull/582/commits/bda260af2d746dd1771050c755817a3161b007f4
https://github.com/lcamhoa
lcamhoahttps://github.com/lcamhoa
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/a37b6eb31788ef0cb5bbde9edf12d1da1a29d5a6..a4793730f23acc3947c3a02fad07672a615a97ca
a37b6ebhttps://github.com/modelcontextprotocol/python-sdk/commit/a37b6eb31788ef0cb5bbde9edf12d1da1a29d5a6
a479373https://github.com/modelcontextprotocol/python-sdk/commit/a4793730f23acc3947c3a02fad07672a615a97ca
Compare https://github.com/modelcontextprotocol/python-sdk/compare/a37b6eb31788ef0cb5bbde9edf12d1da1a29d5a6..a4793730f23acc3947c3a02fad07672a615a97ca
May 6, 2025 02:48https://github.com/modelcontextprotocol/python-sdk/pull/582#event-17529516169
Update uv lock + typerhttps://github.com/modelcontextprotocol/python-sdk/pull/582/commits/36bb4c6a3208bc12a1a330cdc7f0f4a862ca184b
36bb4c6https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/36bb4c6a3208bc12a1a330cdc7f0f4a862ca184b
https://github.com/lcamhoa
lcamhoahttps://github.com/lcamhoa
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/a4793730f23acc3947c3a02fad07672a615a97ca..36bb4c6a3208bc12a1a330cdc7f0f4a862ca184b
a479373https://github.com/modelcontextprotocol/python-sdk/commit/a4793730f23acc3947c3a02fad07672a615a97ca
36bb4c6https://github.com/modelcontextprotocol/python-sdk/commit/36bb4c6a3208bc12a1a330cdc7f0f4a862ca184b
Compare https://github.com/modelcontextprotocol/python-sdk/compare/a4793730f23acc3947c3a02fad07672a615a97ca..36bb4c6a3208bc12a1a330cdc7f0f4a862ca184b
May 6, 2025 04:11https://github.com/modelcontextprotocol/python-sdk/pull/582#event-17530073126
May 7, 2025 14:12https://github.com/modelcontextprotocol/python-sdk/pull/582#commits-pushed-ee8d1eb
fix uv lockhttps://github.com/modelcontextprotocol/python-sdk/pull/582/commits/ee8d1ebf7f35f1b926ea4b6577899d70450e1ec2
ee8d1ebhttps://github.com/modelcontextprotocol/python-sdk/pull/582/commits/ee8d1ebf7f35f1b926ea4b6577899d70450e1ec2
Fix NoneType return starlette/routing.py line 74,https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/74701dd83382ce2735d86a590a84b42a9d7365f4
74701ddhttps://github.com/modelcontextprotocol/python-sdk/pull/582/commits/74701dd83382ce2735d86a590a84b42a9d7365f4
Fix formathttps://github.com/modelcontextprotocol/python-sdk/pull/582/commits/49262a93983912ff43c7d03aa99d07cb746c5821
49262a9https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/49262a93983912ff43c7d03aa99d07cb746c5821
https://github.com/lcamhoa
lcamhoahttps://github.com/lcamhoa
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/4c5d8fac1bacced33c4619619a65e1342413bcfb..49262a93983912ff43c7d03aa99d07cb746c5821
4c5d8fahttps://github.com/modelcontextprotocol/python-sdk/commit/4c5d8fac1bacced33c4619619a65e1342413bcfb
49262a9https://github.com/modelcontextprotocol/python-sdk/commit/49262a93983912ff43c7d03aa99d07cb746c5821
Compare https://github.com/modelcontextprotocol/python-sdk/compare/4c5d8fac1bacced33c4619619a65e1342413bcfb..49262a93983912ff43c7d03aa99d07cb746c5821
May 7, 2025 11:35https://github.com/modelcontextprotocol/python-sdk/pull/582#event-17554606105
https://github.com/ihrpr
ihrprhttps://github.com/ihrpr
May 7, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/582#pullrequestreview-2821562479
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/582/files/49262a93983912ff43c7d03aa99d07cb746c5821
ihrprhttps://github.com/ihrpr
https://github.com/modelcontextprotocol/python-sdk/pull/582#pullrequestreview-2821562479
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#612https://github.com/modelcontextprotocol/python-sdk/pull/612
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/582
uv.lockhttps://github.com/modelcontextprotocol/python-sdk/pull/582/files/49262a93983912ff43c7d03aa99d07cb746c5821#diff-84321598744d84dbee2318e634c74c9aae39a1c253f1c4bd17ebf9ef2f807b11
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/582
examples/servers/simple-tool/mcp_simple_tool/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/582/files/49262a93983912ff43c7d03aa99d07cb746c5821#diff-ba52c682d4e3fbfa81efb481c7df117341f6502fcf7b99f0722448f0ffbfb9bd
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/582
upgreade sse-starlette 2.3.5https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/dbe05d650a854ed7c1c4e5c6bf3b4126e97cae7c
dbe05d6https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/dbe05d650a854ed7c1c4e5c6bf3b4126e97cae7c
https://github.com/lcamhoa
lcamhoahttps://github.com/lcamhoa
Jun 6, 2025https://github.com/modelcontextprotocol/python-sdk/pull/582#issuecomment-2947668128
#612https://github.com/modelcontextprotocol/python-sdk/pull/612
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/582
https://github.com/lcamhoa
lcamhoahttps://github.com/lcamhoa
Jun 6, 2025https://github.com/modelcontextprotocol/python-sdk/pull/582#event-18014655733
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%2F582
https://github.com/ihrpr
ihrpr https://github.com/ihrpr
https://github.com/modelcontextprotocol/python-sdk/pull/582/files/49262a93983912ff43c7d03aa99d07cb746c5821
2025-03-26 spec release https://github.com/modelcontextprotocol/python-sdk/milestone/6
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/582
https://github.com/lcamhoa
https://github.com/Kludex
https://github.com/ihrpr
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.