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
rpc: add limit for batch request and response size #26681
Merged
Merged
Changes from 10 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
7f3d7e6
limit the number of batch requests to 100
mmsqe 667a408
limit the size of the response packet to 10MB
mmsqe 21aec8f
add batch limit related config
mmsqe 6b8b39d
update doc
mmsqe b6993c4
Merge branch 'master' into add-rpc-limit
mmsqe c4ac65c
apply limit for server & client
mmsqe c9015fa
make batch related limit configurable
mmsqe 6d2ce24
Merge branch 'master' into add-rpc-limit
mmsqe 2c04aa0
add SetBatchLimits for client with default limit
mmsqe 22bc552
Merge branch 'master' into add-rpc-limit
mmsqe a43fda5
rename namespace
mmsqe 754137c
Merge branch 'master' into add-rpc-limit
mmsqe d7c8673
allow set limit with dial after client get init
mmsqe 7fd2b77
set limit when init client
mmsqe 733910c
rpc: configure client batch limits through options
fjl bae5a2f
node: refactor passing around rpc config
fjl 6c6b8b1
rpc: increase default batch limits
fjl cebe226
rpc: simplify sending error response
fjl 333dffb
rpc: rename variable
fjl b91f08a
rpc: add test for batch size limit
fjl fdf1b20
handle msg id for batch too large
mmsqe 127079b
test batch request limit for non-call
mmsqe e82658a
rm non-call test
mmsqe bd5dfa6
Merge branch 'master' into add-rpc-limit
holiman 47557d1
cmd/utils: fix docs on flags
holiman 8e6018f
rpc: minor refactor of tests
holiman acf5730
rpc: improve client batch response handling
fjl 82b5208
rpc: attach "batch too large" error to the first call
fjl f0688d6
rpc: remove default limits
fjl cd73291
rpc: remove added blank lines in invalid-batch.js
fjl 7048bfc
rpc: remove special error handling for HTTP batch response length
fjl 6841858
rpc: rename error
fjl File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO these flags should be somwhere in the
rpc.
namespace