Skip to content

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

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

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

Conversation

@kevkevinpal

@kevkevinpal kevkevinpal commented May 30, 2026

Copy link
Copy Markdown
Owner

Summary

This is a follow-up to bitcoin#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.

@kevkevinpal
kevkevinpal force-pushed the max-response-size-for-http-client branch from 5342ab8 to 78db4dd Compare May 30, 2026 14:21
@kevkevinpal kevkevinpal changed the title cli: added -repmaxresponsesize to cap HTTP response size cli: added -rpcmaxresponsesize to cap HTTP response size May 30, 2026
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.

1 participant