Add option for user to set max size limit for RPC requests#9010
Conversation
|
It looks like @mttmartin hasn't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement at the following URL: https://cla.parity.io Once you've signed, please reply to this thread with Many thanks, Parity Technologies CLA Bot |
|
[clabot:check] |
|
It looks like @mttmartin signed our Contributor License Agreement. 👍 Many thanks, Parity Technologies CLA Bot |
| "Enables multiple threads handling incoming connections for HTTP JSON-RPC server.", | ||
|
|
||
| ARG arg_jsonrpc_max_payload: (Option<usize>) = None, or |c: &Config| c.rpc.as_ref()?.max_payload, | ||
| "--jsonrpc-max-size=[NUM]", |
There was a problem hiding this comment.
- should be
MBinstead ofNUM - I'd also call it
--jsonrpc-max-payload
There was a problem hiding this comment.
Thanks for looking over my PR. I've added both of your suggestions.
|
Could not compile |
tomusdrw
left a comment
There was a problem hiding this comment.
Looks good, minor issue with indentation.
| } | ||
| }), | ||
| 1, | ||
| 5, |
There was a problem hiding this comment.
Thanks for the review. I've corrected the indentation issue.
…rp_sync_on_light_client * 'master' of https://github.com/paritytech/parity: Attempt to graceful shutdown in case of panics (openethereum#8999) simplify kvdb error types (openethereum#8924) Add option for user to set max size limit for RPC requests (openethereum#9010) bump ntp to 0.5.0 (openethereum#9009) Removed duplicate dependency (openethereum#9021) Minimal effective gas price in the queue (openethereum#8934)
Add option for user to set max size limit for RPC requests. This was requested in #8961.