diff --git a/burrow/src/wireguard/iface.rs b/burrow/src/wireguard/iface.rs index 4e86114..a23545b 100755 --- a/burrow/src/wireguard/iface.rs +++ b/burrow/src/wireguard/iface.rs @@ -104,18 +104,12 @@ impl Interface { let mut buf = [0u8; 3000]; let src = { - let src = match timeout( - Duration::from_millis(10), - tun.read().await.recv(&mut buf[..]), - ) - .await - { - Ok(Ok(len)) => &buf[..len], - Ok(Err(e)) => { + let src = match tun.read().await.recv(&mut buf[..]).await { + Ok(len) => &buf[..len], + Err(e) => { error!("failed to read from interface: {}", e); continue; } - Err(_would_block) => continue, }; debug!("read {} bytes from interface", src.len()); debug!("bytes: {:?}", src);