mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
ads: fix UdsStream::read_buf to clear read (not write) readiness (#672)
This commit is contained in:
parent
b47ad24268
commit
3a88d85538
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user