mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
rpc: extend buffer size
This commit is contained in:
@@ -218,7 +218,7 @@ async fn get_reply<T: AsyncRead + AsyncWrite + Unpin>(
|
||||
// If we don't get a reply after 30 seconds, we'll fail.
|
||||
let read_timeout = Duration::from_secs(30);
|
||||
|
||||
let mut buf = [0; 2048];
|
||||
let mut buf = [0; 8192];
|
||||
|
||||
stream.write_all(data_str.as_bytes()).await?;
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ async fn serve(
|
||||
) -> Result<()> {
|
||||
debug!(target: "RPC SERVER", "Accepted connection");
|
||||
|
||||
let mut buf = [0; 2048];
|
||||
let mut buf = [0; 8192];
|
||||
|
||||
match tls {
|
||||
None => loop {
|
||||
|
||||
Reference in New Issue
Block a user