diff --git a/bench/Cargo.toml b/bench/Cargo.toml index ccf134ef8..8e7eca26f 100644 --- a/bench/Cargo.toml +++ b/bench/Cargo.toml @@ -12,7 +12,7 @@ futures = "0.3.1" quinn = { path = "../quinn" } rcgen = "0.7" rustls = "0.17" -tokio = { version = "0.2.2", features = ["rt-core"] } +tokio = { version = "0.2.13", features = ["rt-core"] } tracing = "0.1.10" tracing-subscriber = "0.2.0" diff --git a/quinn-h3/src/frame.rs b/quinn-h3/src/frame.rs index 9bdad1f72..297e5dcb4 100644 --- a/quinn-h3/src/frame.rs +++ b/quinn-h3/src/frame.rs @@ -30,12 +30,13 @@ pub struct FrameDecoder { impl FrameDecoder { pub fn stream(stream: T) -> FramedRead { - FramedRead::new( + FramedRead::with_capacity( stream, FrameDecoder { expected: None, partial: None, }, + 65535, ) } }