Fix missing flush for tcp

This commit is contained in:
huntc 2021-12-10 14:38:28 +11:00
parent 29fee65616
commit 5d502ec0af

View file

@ -200,4 +200,8 @@ impl<'a> AsyncWrite for TcpSocket<'a> {
Err(e) => Poll::Ready(Err(to_ioerr(e))), 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?
}
} }