Skip to content

Commit

Permalink
Log failure to set UDP_SEGMENT option
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger authored and Ralith committed Nov 19, 2024
1 parent 95a63d7 commit c613edf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion quinn-udp/src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,13 @@ mod gso {
// #define UDP_MAX_SEGMENTS (1 << 6UL)
match set_socket_option(&socket, libc::SOL_UDP, UDP_SEGMENT, GSO_SIZE) {
Ok(()) => 64,
Err(_) => 1,
Err(_e) => {
crate::log::debug!(
"failed to set `UDP_SEGMENT` socket option ({_e}); setting `max_gso_segments = 1`"
);

1
}
}
}

Expand Down

0 comments on commit c613edf

Please sign in to comment.