rpc: extend buffer size

This commit is contained in:
ghassmo
2022-05-08 18:26:26 +03:00
parent 090fc39455
commit 2a258cf509
2 changed files with 2 additions and 2 deletions

View File

@@ -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?;

View File

@@ -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 {