Skip to content

Commit

Permalink
H3: set FrameDecoder initial buffersize to UDP size
Browse files Browse the repository at this point in the history
  • Loading branch information
stammw authored and djc committed Mar 10, 2020
1 parent a57b44e commit 0ff3d8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 2 additions & 1 deletion quinn-h3/src/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ pub struct FrameDecoder {

impl FrameDecoder {
pub fn stream<T: AsyncRead>(stream: T) -> FramedRead<T, Self> {
FramedRead::new(
FramedRead::with_capacity(
stream,
FrameDecoder {
expected: None,
partial: None,
},
65535,
)
}
}
Expand Down

0 comments on commit 0ff3d8f

Please sign in to comment.