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

pull kevkevinpal wants to merge 2 commits into bitcoin:master from kevkevinpal:max-response-size-for-http-client changing 2 files +62 −11
  1. kevkevinpal commented at 4:21 PM on May 30, 2026: 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.

  2. cli: added -rpcmaxresponsesize to cap HTTP response size 78db4ddeed
  3. test: added coverage for -rpcmaxresponsesize 3217c77207
  4. DrahtBot added the label Scripts and tools on May 30, 2026
  5. DrahtBot commented at 4:21 PM on May 30, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

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

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

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

    <!--174a7506f384e20aa4161008e828411d-->

    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.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-31 17:50 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me