4
1
mirror of https://github.com/DragonOS-Community/DragonOS.git synced 2025-06-20 01:46:31 +00:00

纸糊忙等tcp connecting,尚不明确连接可用的机制。

This commit is contained in:
2024-11-20 16:59:11 +08:00
parent bd5f713617
commit f438808421
8 changed files with 133 additions and 96 deletions
kernel/src
arch
x86_64
syscall
driver
net

@ -246,8 +246,8 @@ impl IfaceCommon {
self.bounds.read().iter().for_each(|bound_socket| {
// incase our inet socket missed the event, we manually notify it each time we poll
bound_socket.on_iface_events();
if has_events {
bound_socket.on_iface_events();
bound_socket
.wait_queue()
.wakeup(Some(ProcessState::Blocked(true)));

@ -645,6 +645,7 @@ impl Iface for VirtioInterface {
}
fn poll(&self) {
// log::debug!("VirtioInterface: poll");
self.iface_common.poll(self.device_inner.force_get_mut())
}