Title: fix(streamable-http): close SSE responses on errors by Epochex · Pull Request #2633 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: fix(streamable-http): close SSE responses on errors by Epochex · Pull Request #2633 · modelcontextprotocol/python-sdk
X Title: fix(streamable-http): close SSE responses on errors by Epochex · Pull Request #2633 · modelcontextprotocol/python-sdk
Description: SSE response objects can be leaked when streaming fails or ends unexpectedly. This ensures HTTP responses are always closed in: _handle_sse_response _handle_resumption_request Fixes #1450. Tests: uv run --frozen python -m ruff check src/mcp/client/streamable_http.py tests/client/test_streamable_http_response_cleanup.py uv run --frozen python -m ruff format src/mcp/client/streamable_http.py tests/client/test_streamable_http_response_cleanup.py uv run --frozen pytest tests/client/test_streamable_http_response_cleanup.py -q
Open Graph Description: SSE response objects can be leaked when streaming fails or ends unexpectedly. This ensures HTTP responses are always closed in: _handle_sse_response _handle_resumption_request Fixes #1450. Tests:...
X Description: SSE response objects can be leaked when streaming fails or ends unexpectedly. This ensures HTTP responses are always closed in: _handle_sse_response _handle_resumption_request Fixes #1450. Tests:...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2633
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9787c6c8-1af9-3dd3-af97-9637989e7fcb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BD0A:3B144:94F98:CCFB1:6A61BDF5 |
| html-safe-nonce | 1354d5e4f825e2e18a7d8d3bbbd9eafc945aa8c70dd21a09d9cb2f6239660891 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDBBOjNCMTQ0Ojk0Rjk4OkNDRkIxOjZBNjFCREY1IiwidmlzaXRvcl9pZCI6IjE5ODY3MTg5MjIyMDE3NDI4MzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b34def51569eae08bad8d435f47abd224c0f4777bd9f775148517205bbd90078 |
| hovercard-subject-tag | pull_request:3702134732 |
| 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/2633/files |
| twitter:image | https://avatars.githubusercontent.com/u/68621077?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/68621077?s=400&v=4 |
| og:image:alt | SSE response objects can be leaked when streaming fails or ends unexpectedly. This ensures HTTP responses are always closed in: _handle_sse_response _handle_resumption_request Fixes #1450. Tests:... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9 |
| 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 | ac296ae7f21856f1f92adbad22f870b6fbb4b907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width