Fix missing flush for tcp
This commit is contained in:
parent
29fee65616
commit
5d502ec0af
1 changed files with 4 additions and 0 deletions
|
@ -200,4 +200,8 @@ impl<'a> AsyncWrite for TcpSocket<'a> {
|
|||
Err(e) => Poll::Ready(Err(to_ioerr(e))),
|
||||
})
|
||||
}
|
||||
|
||||
fn poll_flush(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<io::Result<()>> {
|
||||
Poll::Ready(Ok(())) // TODO: Is there a better implementation for this?
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue