diff --git a/proxmox-protocol/src/common.rs b/proxmox-protocol/src/common.rs index 8c67f41d..244aeeb5 100644 --- a/proxmox-protocol/src/common.rs +++ b/proxmox-protocol/src/common.rs @@ -106,14 +106,6 @@ where match self.poll_data_do() { Ok(has_packet) => Ok(has_packet), Err(e) => { - // To support AsyncRead/AsyncWrite we do not enter a failed - // state when we read from a non-blocking source which fails - // with WouldBlock. - if let Some(ioe) = e.downcast_ref::() { - if ioe.kind() == io::ErrorKind::WouldBlock { - return Ok(false); - } - } self.error = true; Err(e) }