diff --git a/Cargo.toml b/Cargo.toml index cf050ed6c..a5642e507 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-web" -version = "0.4.0" +version = "0.4.1" authors = ["Nikolay Kim "] description = "Actix web is a small, pragmatic, extremely fast, web framework for Rust." readme = "README.md" diff --git a/src/server/utils.rs b/src/server/utils.rs index 79e0a11c5..5bb59521b 100644 --- a/src/server/utils.rs +++ b/src/server/utils.rs @@ -4,8 +4,8 @@ use futures::{Async, Poll}; use super::IoStream; -const LW_BUFFER_SIZE: usize = 4096; -const HW_BUFFER_SIZE: usize = 16_384; +const LW_BUFFER_SIZE: usize = 8192; +const HW_BUFFER_SIZE: usize = 32_768; pub fn read_from_io(io: &mut T, buf: &mut BytesMut) -> Poll {