Skip to content

Commit

Permalink
Fix the loss of large, merged packets (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLostLambda authored Mar 31, 2020
1 parent fe642f8 commit 79623d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/os/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ fn get_datalink_channel(
) -> Result<Box<dyn DataLinkReceiver>, GetInterfaceErrorKind> {
let mut config = Config::default();
config.read_timeout = Some(time::Duration::new(1, 0));
config.read_buffer_size = 65536;

match datalink::channel(interface, config) {
Ok(Ethernet(_tx, rx)) => Ok(rx),
Expand Down

0 comments on commit 79623d3

Please sign in to comment.