Skip to content

cli: added -rpcmaxresponsesize to cap HTTP response size#35420

Open
kevkevinpal wants to merge 2 commits into
bitcoin:masterfrom
kevkevinpal:max-response-size-for-http-client
Open

cli: added -rpcmaxresponsesize to cap HTTP response size#35420
kevkevinpal wants to merge 2 commits into
bitcoin:masterfrom
kevkevinpal:max-response-size-for-http-client

Conversation

@kevkevinpal
Copy link
Copy Markdown
Contributor

Summary

This is a follow-up to #34342 (comment). This change adds -rpcmaxresponsesize to cap the total response size in bitcoin-cli.

Currently, the MAX_SIZE is uint64_t MAX_SIZE = 0x02000000 or 32 MB. There is a usecase for the user to lower this amount. The user can also set -rpcmaxresponsesize to set the size to be unbounded.

@DrahtBot
Copy link
Copy Markdown
Contributor

DrahtBot commented May 30, 2026

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35420.

Reviews

See the guideline for information on the review process.
A summary of reviews will appear here.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #31260 (scripted-diff: Type-safe settings retrieval by ryanofsky)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants