Skip to content

Reduce request read limit from 4MiB to 1MiB. - #529

Merged
jholdstock merged 1 commit into
decred:masterfrom
jholdstock:readlim
Aug 22, 2026
Merged

jholdstock merged 1 commit into
decred:masterfrom
jholdstock:readlim

Conversation

@jholdstock

Copy link
Copy Markdown
Member

4MiB was set as a read limit somewhat arbitrarily, just to ensure there is some limit in place rather than allowing unlimited reads. This can be reduced to 1MiB and still comfortably fit a request containing even the maximum possible transaction hex.

Note that the comment here which stated 2MiB was incorrect and the actual value in use was 4MiB.

4MiB was set as a read limit somewhat arbitrarily, just to ensure there
is some limit in place rather than allowing unlimited reads. This can be
reduced to 1MiB and still comfortably fit a request containing even the
maximum possible transaction hex.

Note that the comment here which stated 2MiB was incorrect and the
actual value in use was 4MiB.
@jholdstock
jholdstock merged commit be11950 into decred:master Aug 22, 2026
2 checks passed
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.

2 participants