From 3a88d855380cab8b114fee1f930f431abda7b50d Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 27 Sep 2018 20:02:29 -0700 Subject: [PATCH] ads: fix UdsStream::read_buf to clear read (not write) readiness (#672) --- tokio-uds/src/stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-uds/src/stream.rs b/tokio-uds/src/stream.rs index 50dfc0999..77363c80d 100644 --- a/tokio-uds/src/stream.rs +++ b/tokio-uds/src/stream.rs @@ -196,7 +196,7 @@ impl<'a> AsyncRead for &'a UnixStream { if r == -1 { let e = io::Error::last_os_error(); if e.kind() == io::ErrorKind::WouldBlock { - self.io.clear_write_ready()?; + self.io.clear_read_ready(Ready::readable())?; Ok(Async::NotReady) } else { Err(e)