1281: Wait for waker when no data is available on UDP socket. r=Dirbaio a=royb3



Co-authored-by: Roy Buitenhuis <roy.buitenhuis@technolution.nl>
This commit is contained in:
bors[bot] 2023-03-15 12:59:11 +00:00 committed by GitHub
commit 2c9f289f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,8 +94,7 @@ impl<'a> UdpSocket<'a> {
Ok(x) => Poll::Ready(Ok(x)), Ok(x) => Poll::Ready(Ok(x)),
// No data ready // No data ready
Err(udp::RecvError::Exhausted) => { Err(udp::RecvError::Exhausted) => {
//s.register_recv_waker(cx.waker()); s.register_recv_waker(cx.waker());
cx.waker().wake_by_ref();
Poll::Pending Poll::Pending
} }
}) })