Merge pull request #2917 from davidskula/main

impl ReadReady for tcp call can_recv() insted of may_recv()
This commit is contained in:
Ulf Lilleengen 2024-05-07 20:40:45 +00:00 committed by GitHub
commit 0f11fecff6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -555,7 +555,7 @@ mod embedded_io_impls {
impl<'d> embedded_io_async::ReadReady for TcpSocket<'d> {
fn read_ready(&mut self) -> Result<bool, Self::Error> {
Ok(self.io.with(|s, _| s.may_recv()))
Ok(self.io.with(|s, _| s.can_recv()))
}
}
@ -587,7 +587,7 @@ mod embedded_io_impls {
impl<'d> embedded_io_async::ReadReady for TcpReader<'d> {
fn read_ready(&mut self) -> Result<bool, Self::Error> {
Ok(self.io.with(|s, _| s.may_recv()))
Ok(self.io.with(|s, _| s.can_recv()))
}
}