Title: Handle BrokenResourceError in stdio client shutdown path by aframedelta · Pull Request #2143 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Handle BrokenResourceError in stdio client shutdown path by aframedelta · Pull Request #2143 · modelcontextprotocol/python-sdk
X Title: Handle BrokenResourceError in stdio client shutdown path by aframedelta · Pull Request #2143 · modelcontextprotocol/python-sdk
Description: Summary handle anyio.BrokenResourceError in stdio client reader/writer loops add regression test for an immediately-exiting stdio server path Why Related to #1564. When the subprocess stdio closes abruptly during client initialization, BrokenResourceError may escape from stream tasks and surface as an unhelpful TaskGroup failure instead of a clean MCP connection-closed path. Changes catch anyio.BrokenResourceError alongside ClosedResourceError in: stdout_reader stdin_writer add test_stdio_client_exits_immediately_surfaces_connection_closed Validation . .venv/bin/activate && pytest tests/client/test_stdio.py -q -k "bad_path or exits_immediately or nonexistent_command" 3 passed
Open Graph Description: Summary handle anyio.BrokenResourceError in stdio client reader/writer loops add regression test for an immediately-exiting stdio server path Why Related to #1564. When the subprocess stdio close...
X Description: Summary handle anyio.BrokenResourceError in stdio client reader/writer loops add regression test for an immediately-exiting stdio server path Why Related to #1564. When the subprocess stdio close...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2143
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:edd4cc5d-e697-7f8e-4ca1-0d4e9d388464 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C1A0:24667B:3332D1:430C82:6A5AD20A |
| html-safe-nonce | b18102089d3cf04862bdcfec329a5068cfdfa36bd3555d7fde4c17357754443c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUEwOjI0NjY3QjozMzMyRDE6NDMwQzgyOjZBNUFEMjBBIiwidmlzaXRvcl9pZCI6Ijg1NTEyODQxODMwODc2MzI5MDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d83372c211a8fbf3daa40045edc101875a59ffaed1112f7040359532170bf278 |
| hovercard-subject-tag | pull_request:3323940525 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2143/files |
| twitter:image | https://avatars.githubusercontent.com/u/263054350?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/263054350?s=400&v=4 |
| og:image:alt | Summary handle anyio.BrokenResourceError in stdio client reader/writer loops add regression test for an immediately-exiting stdio server path Why Related to #1564. When the subprocess stdio close... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 887a0902ea4987c46dd44cbc73dfadecb93a29560d7519a576fcecd81716148c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2606513ce6b72f8b775db6a60283f9cf7d4d70a5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width