mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-16 00:00:12 +02:00
Merge pull request #195 from living180/master
Fix logic error in TcpStream.read_buf()
This commit is contained in:
+1
-1
@@ -526,7 +526,7 @@ impl<'a> AsyncRead for &'a TcpStream {
|
||||
}
|
||||
Err(e) => {
|
||||
if e.kind() == io::ErrorKind::WouldBlock {
|
||||
self.io.need_write();
|
||||
self.io.need_read();
|
||||
}
|
||||
Err(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user