From 669bc4476ee7661063709e23f7b38d129ae1e737 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Tue, 2 Nov 2021 16:22:45 +0100 Subject: [PATCH] io: update copy buffer size (#4209) --- tokio/src/io/util/copy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/io/util/copy.rs b/tokio/src/io/util/copy.rs index d7fca2c37..d0ab7cb14 100644 --- a/tokio/src/io/util/copy.rs +++ b/tokio/src/io/util/copy.rs @@ -23,7 +23,7 @@ impl CopyBuffer { pos: 0, cap: 0, amt: 0, - buf: vec![0; 2048].into_boxed_slice(), + buf: vec![0; super::DEFAULT_BUF_SIZE].into_boxed_slice(), } }