mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
rpc: Increase incoming JSON-RPC buffer size to 8 meg.
This commit is contained in:
@@ -199,8 +199,8 @@ impl RpcClient {
|
||||
let read_timeout = Duration::from_secs(30);
|
||||
|
||||
loop {
|
||||
// Nasty size
|
||||
let mut buf = vec![0; 2048 * 10];
|
||||
// FIXME: Nasty size. 8M
|
||||
let mut buf = vec![0; 1024 * 8192];
|
||||
|
||||
select! {
|
||||
data = data_recv.recv().fuse() => {
|
||||
|
||||
@@ -48,8 +48,8 @@ async fn accept(
|
||||
rh: Arc<impl RequestHandler + 'static>,
|
||||
) -> Result<()> {
|
||||
loop {
|
||||
// Nasty size
|
||||
let mut buf = vec![0; 8192 * 10];
|
||||
// FIXME: Nasty size. 8M
|
||||
let mut buf = vec![0; 1024 * 8192];
|
||||
|
||||
let n = match stream.read(&mut buf).await {
|
||||
Ok(n) if n == 0 => {
|
||||
|
||||
Reference in New Issue
Block a user