Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update BufReader capacity to 2MB #605

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

kalvinnchau
Copy link
Collaborator

increase BufReader capacity

This increases the BufReader's capacity to 2 * 1024 * 1024 (2MB) to handle very large message sizes.
With the default of 8 * 1024 (https://doc.rust-lang.org/std/io/struct.BufReader.html) we saw truncated json-rpc messages coming across to the mcp-server.

couldn't have figured this out without @salman1993, thanks for all the help!

Copy link
Collaborator

@baxen baxen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michaelneale
Copy link
Collaborator

nice find!

Copy link

Desktop App for this PR

The following build is available for testing:

The app is signed and notarized for macOS. After downloading, unzip the file and drag the Goose.app to your Applications folder.

This link is provided by nightly.link and will work even if you're not logged into GitHub.

@kalvinnchau kalvinnchau merged commit df0b4ee into v1.0 Jan 15, 2025
6 checks passed
michaelneale added a commit that referenced this pull request Jan 15, 2025
* ldelalande/welcome-ux-update: (42 commits)
  format
  Use new configuration and secret storage
  Simplify configuration (#607)
  [setup] UX simplification for adding API keys on app startup
  adding in comments for where to add variables for bundling
  can reset the provider
  will open new window when set
  show window based on local storage goose_provider
  update the icon
  new goose modals for adding models
  latest changes with mock keystore
  initial static setup
  fix: update BufReader capacity to 2MB (#605)
  fix: escape double quotes in error part (#602)
  refactor: remove unused errors in mcp-client (#598)
  add more context from mcp server errors (#599)
  fix: error formatting for vercel data format (#597)
  feat: Add endpoint to store secrets in keychain (#595)
  feat: mcp server prompts (#562)
  fix: Temporarily disable moderation (#594)
  ...
salman1993 added a commit that referenced this pull request Jan 16, 2025
* origin/v1.0:
  feat: add a truncating agent (#579)
  feat: Release devtools opening keyboard shortcut when goose window is not focused (#614)
  feat: performance tweaks for partial release (#611)
  Alexhancock/inline code (#612)
  feat: add more tracing logs, trim loaded prompt  (#603)
  feature: new welcome page and real keychain  (#604)
  fix: model names in UI API key warning (#609)
  feat: map non-ok responses from provider to human readable error msgs (#610)
  fix: update BufReader capacity to 2MB (#605)
  fix: escape double quotes in error part (#602)
  refactor: remove unused errors in mcp-client (#598)
  add more context from mcp server errors (#599)
  fix: error formatting for vercel data format (#597)
  feat: Add endpoint to store secrets in keychain (#595)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants