Increase RPC read/write limit to 4M

This commit is contained in:
Age Manning 2019-03-21 10:43:21 +11:00
parent e080f63811
commit 3aa2b376bb
No known key found for this signature in database
GPG Key ID: 05EED64B79E06A93

View File

@ -6,7 +6,7 @@ use std::iter;
use tokio::io::{AsyncRead, AsyncWrite};
/// The maximum bytes that can be sent across the RPC.
const MAX_READ_SIZE: usize = 2048;
const MAX_READ_SIZE: usize = 4_194_304; // 4M
/// Implementation of the `ConnectionUpgrade` for the rpc protocol.