Fix async problem

remove timeouts
This commit is contained in:
Jett Chen 2023-12-03 01:27:06 +08:00
parent 28ebfec3ca
commit 7f6897f0d6
3 changed files with 6 additions and 14 deletions

View file

@ -53,8 +53,8 @@ impl TunInterface {
#[throws]
#[instrument]
pub fn set_timeout(&self, timeout: Option<std::time::Duration>) {
self.socket.set_read_timeout(timeout)?;
pub fn set_nonblocking(&mut self, nb: bool) {
self.socket.set_nonblocking(nb)?;
}
}