Skip to content

Commit

Permalink
cleanup socket code
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Nov 26, 2024
1 parent 2dcea28 commit f518925
Show file tree
Hide file tree
Showing 2 changed files with 237 additions and 276 deletions.
4 changes: 2 additions & 2 deletions iroh-net/src/magicsock/udp_conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ impl AsyncUdpSocket for UdpConn {
}

fn max_transmit_segments(&self) -> usize {
self.io.max_transmit_segments().unwrap_or_default()
self.io.max_gso_segments().unwrap_or_default()
}

fn max_receive_segments(&self) -> usize {
self.io.max_receive_segments().unwrap_or_default()
self.io.gro_segments().unwrap_or_default()
}
}

Expand Down
Loading

0 comments on commit f518925

Please sign in to comment.