-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
enha(rpc): add configurable max response size for JSON-RPC server #2042
Conversation
Add a new configuration parameter `rpc_max_response_size_bytes` to control the maximum response size for JSON-RPC server connections. This allows more granular control over server resource limits and prevents potential large response-related issues.
PR Reviewer Guide 🔍(Review updated until commit 6f87210)Here are some key observations to aid the review process:
|
Persistent review updated to latest commit 6f87210 |
PR Code Suggestions ✨Latest suggestions up to 6f87210
Previous suggestionsSuggestions up to commit 6f87210
|
Final benchmark: Git Info:
Configuration:
Leader Stats: Follower Stats: Plots: |
User description
Add a new configuration parameter
rpc_max_response_size_bytes
to control the maximum response size for JSON-RPC server connections. This allows more granular control over server resource limits and prevents potential large response-related issues.PR Type
Enhancement
Description
Add configurable max response size for JSON-RPC server
Introduce
rpc_max_response_size_bytes
configuration parameterSet default max response size to 10MB
Apply max response size limit to RPC server
Changes walkthrough 📝
rpc_config.rs
Add max response size configuration option
src/eth/rpc/rpc_config.rs
rpc_max_response_size_bytes
field toRpcServerConfig
structrpc_server.rs
Implement max response size limit in RPC server
src/eth/rpc/rpc_server.rs
max_response_body_size
setting to RPC serverrpc_max_response_size_bytes
from config