Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(s2n-quic-platform): don't reduce rx MTU when tx MTU is reduced #2156

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion quic/s2n-quic-platform/src/io/tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ impl Io {
let payload_len = if gro_enabled {
u16::MAX
} else {
max_mtu.into()
// Use the originally configured MTU to allow larger packets to be received
// even if the tx MTU has been reduced due to configure_mtu_disc failing
self.builder.max_mtu.into()
} as u32;

let rx_buffer_size = queue_recv_buffer_size.unwrap_or(8 * (1 << 20));
Expand Down
Loading