René's URL Explorer Experiment


Title: fix: handle ClosedResourceError in _handle_message error recovery path by BabyChrist666 · Pull Request #2072 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: fix: handle ClosedResourceError in _handle_message error recovery path by BabyChrist666 · Pull Request #2072 · modelcontextprotocol/python-sdk

X Title: fix: handle ClosedResourceError in _handle_message error recovery path by BabyChrist666 · Pull Request #2072 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - fix: handle ClosedResourceError in _handle_message error recovery path by BabyChrist666 · Pull Request #2072 · modelcontextprotocol/python-sdk

Open Graph Description: Summary Closes #2064 When a client disconnects while a stateless streamable-HTTP server is processing a request, the error handler in _handle_message tries to send_log_message() back to the client....

X Description: Summary Closes #2064 When a client disconnects while a stateless streamable-HTTP server is processing a request, the error handler in _handle_message tries to send_log_message() back to the client....

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

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:08a638cb-e1d2-fe61-ded3-5991d5584a01
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCEB8:35E861:563BE0:737E8B:6A5B31A3
html-safe-nonce171d143fca88415eac5ef1cf176cadb35810583bcacf73e4d318ca97d3bd0a48
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUI4OjM1RTg2MTo1NjNCRTA6NzM3RThCOjZBNUIzMUEzIiwidmlzaXRvcl9pZCI6IjY0MDUxNTc0OTk5NDAwNTc1MDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0af08b6ad0f7630ed37c9d9c65fcc3a4e2f7c7ed5e9cf804da856c787dfbe9f6
hovercard-subject-tagpull_request:3292582584
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/2072/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/2cb5b9ff6201f43fd5e7535f6579cc4a6b4d983905bd1b0497458e5b368886ca/modelcontextprotocol/python-sdk/pull/2072
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2cb5b9ff6201f43fd5e7535f6579cc4a6b4d983905bd1b0497458e5b368886ca/modelcontextprotocol/python-sdk/pull/2072
og:image:altSummary Closes #2064 When a client disconnects while a stateless streamable-HTTP server is processing a request, the error handler in _handle_message tries to send_log_message() back to the client....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameBabyChrist666
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/2072#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2072
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%2F2072
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/2072
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2072
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2072
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2072
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.6k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 258 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 301 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
BabyChrist666https://github.com/BabyChrist666
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
BabyChrist666:fix/handle-closed-resource-in-error-handler-2064https://github.com/BabyChrist666/python-sdk/tree/fix/handle-closed-resource-in-error-handler-2064
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2072
Commits1 (1)https://github.com/modelcontextprotocol/python-sdk/pull/2072/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2072/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2072/files
fix: handle ClosedResourceError in _handle_message error recovery pathhttps://github.com/modelcontextprotocol/python-sdk/pull/2072#top
BabyChrist666https://github.com/BabyChrist666
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
BabyChrist666:fix/handle-closed-resource-in-error-handler-2064https://github.com/BabyChrist666/python-sdk/tree/fix/handle-closed-resource-in-error-handler-2064
https://github.com/BabyChrist666
BabyChrist666https://github.com/BabyChrist666
Feb 17, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2072#issue-3950726075
#2064https://github.com/modelcontextprotocol/python-sdk/issues/2064
#1384https://github.com/modelcontextprotocol/python-sdk/pull/1384
Claude Codehttps://claude.com/claude-code
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2072
https://github.com/BabyChrist666
BabyChrist666https://github.com/BabyChrist666
Feb 17, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2072#ref-issue-3941421632
ClientDisconnect during _handle_post_request crashes stateless session with ClosedResourceError #2064 https://github.com/modelcontextprotocol/python-sdk/issues/2064
https://github.com/BabyChrist666
BabyChrist666https://github.com/BabyChrist666
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/69a8b7dcf4eaa78b90bee631c6403e6b47b78093..aa3332b746e829dca23b9ef26049635a96160e61
69a8b7dhttps://github.com/modelcontextprotocol/python-sdk/commit/69a8b7dcf4eaa78b90bee631c6403e6b47b78093
aa3332bhttps://github.com/modelcontextprotocol/python-sdk/commit/aa3332b746e829dca23b9ef26049635a96160e61
Compare https://github.com/modelcontextprotocol/python-sdk/compare/69a8b7dcf4eaa78b90bee631c6403e6b47b78093..aa3332b746e829dca23b9ef26049635a96160e61
February 22, 2026 05:27https://github.com/modelcontextprotocol/python-sdk/pull/2072#event-22976558169
https://github.com/ethanleifer
ethanleiferhttps://github.com/ethanleifer
Mar 2, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2072#issuecomment-3984718878
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2072
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 5, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2072#ref-pullrequest-4005404635
fix: catch ClosedResourceError when sending error log to disconnected client #2184 https://github.com/modelcontextprotocol/python-sdk/pull/2184
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
bug https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3Abug
P3 https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3AP3
Mar 5, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2072#event-23302077817
https://github.com/BabyChrist666
https://github.com/claude
fix: handle ClosedResourceError in _handle_message error path (https://github.com/modelcontextprotocol/python-sdk/pull/2072/commits/e803fa720546b7d2e2bc892e0381f56c5aa0dd35
modelc…https://github.com/modelcontextprotocol/python-sdk/issues/2064
e803fa7https://github.com/modelcontextprotocol/python-sdk/pull/2072/commits/e803fa720546b7d2e2bc892e0381f56c5aa0dd35
…ontextprotocol#2064https://github.com/modelcontextprotocol/python-sdk/issues/2064
https://github.com/BabyChrist666
BabyChrist666https://github.com/BabyChrist666
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/aa3332b746e829dca23b9ef26049635a96160e61..e803fa720546b7d2e2bc892e0381f56c5aa0dd35
aa3332bhttps://github.com/modelcontextprotocol/python-sdk/commit/aa3332b746e829dca23b9ef26049635a96160e61
e803fa7https://github.com/modelcontextprotocol/python-sdk/commit/e803fa720546b7d2e2bc892e0381f56c5aa0dd35
Compare https://github.com/modelcontextprotocol/python-sdk/compare/aa3332b746e829dca23b9ef26049635a96160e61..e803fa720546b7d2e2bc892e0381f56c5aa0dd35
March 9, 2026 04:13https://github.com/modelcontextprotocol/python-sdk/pull/2072#event-23382656780
https://github.com/BabyChrist666
BabyChrist666https://github.com/BabyChrist666
Mar 9, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2072#ref-pullrequest-4037411165
fix: catch ClosedResourceError in _handle_message error recovery path #2242 https://github.com/modelcontextprotocol/python-sdk/pull/2242
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 9, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2072#ref-pullrequest-4046544274
fix: don't send log notification on transport error #2257 https://github.com/modelcontextprotocol/python-sdk/pull/2257
https://github.com/elijahgjacob
elijahgjacobhttps://github.com/elijahgjacob
Mar 12, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2072#ref-pullrequest-4067597792
fix: suppress ClosedResourceError tracebacks in streamable HTTP transport Try-Gravity/gravity-mcp#22 https://github.com/Try-Gravity/gravity-mcp/pull/22
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 24, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2072#issuecomment-4121297587
#2064https://github.com/modelcontextprotocol/python-sdk/issues/2064
AI Disclaimerhttps://gist.github.com/maxisbey/6123d132484e4c533eab519a2800693d
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2072
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 24, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2072#event-23867063072
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%2F2072
bug https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3Abug
P3 https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3AP3
ClientDisconnect during _handle_post_request crashes stateless session with ClosedResourceError https://github.com/modelcontextprotocol/python-sdk/issues/2064
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2072
https://github.com/BabyChrist666
https://github.com/ethanleifer
https://github.com/maxisbey
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.