Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/executor/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,10 @@ async fn network_run() {
if let Some(mut guard) = NIC.try_lock() {
match &mut *guard {
NetworkState::Initialized(nic) => {
nic.poll_common(now());
// FIXME: only wake when progress can be made
cx.waker().wake_by_ref();
let r = nic.poll_common(now());
if r == PollResult::SocketStateChanged {
cx.waker().wake_by_ref();
}
Poll::Pending
}
_ => Poll::Ready(()),
Expand Down
Loading