Skip to content

Commit

Permalink
fix(s2n-quic-platform): don't reduce rx MTU when tx MTU is reduced (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyRosenblum authored Mar 19, 2024
1 parent 9e39ca0 commit ac7bf90
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit ac7bf90

Please sign in to comment.