From c98a5e28ae85058e954acd7f7235232dd40df394 Mon Sep 17 00:00:00 2001 From: German Date: Fri, 23 Aug 2024 15:27:17 +0300 Subject: [PATCH] 0.5.1 buffer 1mb --- ehttp/src/streaming/native.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ehttp/src/streaming/native.rs b/ehttp/src/streaming/native.rs index 96e9368..168a316 100644 --- a/ehttp/src/streaming/native.rs +++ b/ehttp/src/streaming/native.rs @@ -66,7 +66,7 @@ pub fn fetch_streaming_blocking( let mut reader = resp.into_reader(); loop { - let mut buf = vec![0; 5120]; + let mut buf = vec![0; 1048576]; match reader.read(&mut buf) { Ok(n) if n > 0 => { // clone data from buffer and clear it