Title: fix(stdio): allow configurable memory stream buffer size by yaowubarbara · Pull Request #2215 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: fix(stdio): allow configurable memory stream buffer size by yaowubarbara · Pull Request #2215 · modelcontextprotocol/python-sdk
X Title: fix(stdio): allow configurable memory stream buffer size by yaowubarbara · Pull Request #2215 · modelcontextprotocol/python-sdk
Description: Summary Add and parameters to to decouple the stdin reader from the message processor. Problem With the current hardcoded in , the stdin reader blocks on until the message processor calls . When processing is slow (database queries, API calls), the reader cannot accept new messages including pings, causing the server to become unresponsive. See #1333 for details. Solution Add two optional parameters with default value (preserving current behavior) Pass them through to Users can set to allow the reader to queue messages ahead of the processor Test plan Added : verifies basic functionality with non-zero buffer Added : verifies buffered mode allows concurrent message reading during slow processing Existing continues to pass (backward compatible) Closes #1333
Open Graph Description: Summary Add and parameters to to decouple the stdin reader from the message processor. Problem With the current hardcoded in , the stdin reader blocks on until the message processor calls . Wh...
X Description: Summary Add and parameters to to decouple the stdin reader from the message processor. Problem With the current hardcoded in , the stdin reader blocks on until the message processor calls . Wh...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2215
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:249a2197-87b0-76ac-25ac-a7400ad491e1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D45A:192070:23888A:31ABD2:6A5A46FD |
| html-safe-nonce | 3da9f10c3b781524521e21524df6d5b8923ec3ec64b1e94fe68a0595580e78d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDVBOjE5MjA3MDoyMzg4OEE6MzFBQkQyOjZBNUE0NkZEIiwidmlzaXRvcl9pZCI6IjI2MTgxODU2NDI3ODcwOTYzMTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5a10d1c27bb00cbc5b093baeef683cbdfcad3789b190d436d5ce94f8488eb9d4 |
| hovercard-subject-tag | pull_request:3359406479 |
| 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/2215/files |
| twitter:image | https://avatars.githubusercontent.com/u/113857460?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/113857460?s=400&v=4 |
| og:image:alt | Summary Add and parameters to to decouple the stdin reader from the message processor. Problem With the current hardcoded in , the stdin reader blocks on until the message processor calls . Wh... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a793cd1fa898929111edad5857ee1f24ecf4bf7702525e67357cabc9df136fc3 |
| 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 | 5aec27bb9c4f7ebe5fbbcd1533a5509e63a570a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width