Title: fix: suppress completed request cancellation leak by MukundaKatta · Pull Request #2611 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: fix: suppress completed request cancellation leak by MukundaKatta · Pull Request #2611 · modelcontextprotocol/python-sdk
X Title: fix: suppress completed request cancellation leak by MukundaKatta · Pull Request #2611 · modelcontextprotocol/python-sdk
Description: Summary return the underlying CancelScope.exit suppression result from RequestResponder.exit swallow a late cancellation from an already-cancelled/completed responder so cancelled requests do not tear down sibling tasks add regressions for completed responder cancellations Fixes #2610. Tests uv run pytest tests/shared/test_session.py -q -k "request_responder or request_cancellation" uv run pytest tests/server/test_cancel_handling.py tests/shared/test_session.py -q uv run ruff check src/mcp/shared/session.py tests/shared/test_session.py uv run ruff format --check src/mcp/shared/session.py tests/shared/test_session.py uv run pyright src/mcp/shared/session.py tests/shared/test_session.py
Open Graph Description: Summary return the underlying CancelScope.exit suppression result from RequestResponder.exit swallow a late cancellation from an already-cancelled/completed responder so cancelled requests do not ...
X Description: Summary return the underlying CancelScope.exit suppression result from RequestResponder.exit swallow a late cancellation from an already-cancelled/completed responder so cancelled requests do not ...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2611
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:bc00d48f-358c-bf29-e578-7823ed9063f3 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D812:3B72BF:BC7BFC:FF093E:6A5A920B |
| html-safe-nonce | 90866e8a0ca5579112ccf55c99bc18d4e94322f513e94f46d491dd39c25c15e0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODEyOjNCNzJCRjpCQzdCRkM6RkYwOTNFOjZBNUE5MjBCIiwidmlzaXRvcl9pZCI6Ijg1MzgyNjM2NzE5MDIyMTI2MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | df7bbbafabd99cfe1237f0fd0cf565ea6cf0ef7034c491f1f85f29ac657f90dd |
| hovercard-subject-tag | pull_request:3691871301 |
| 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/2611/files |
| twitter:image | https://avatars.githubusercontent.com/u/99349238?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/99349238?s=400&v=4 |
| og:image:alt | Summary return the underlying CancelScope.exit suppression result from RequestResponder.exit swallow a late cancellation from an already-cancelled/completed responder so cancelled requests do not ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9989a1a1d89aa5a38a19e5d0c7ee88a8ffde84acde90048990492aae52f235db |
| 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 | ba6769fbf719c56dbf7bed650ce454dafc5b1528 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width