Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Net bridge will cause packets lost #21

Open
Azure-stars opened this issue Jul 28, 2024 · 0 comments
Open

bug: Net bridge will cause packets lost #21

Azure-stars opened this issue Jul 28, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Azure-stars
Copy link
Contributor

Now the naive net bridge has a bug. When different ifaces share a common socket set, packets will be polled by the iface which can't process it. And it will cause bugs like connect-time-out.

The codes are as below:

pub fn poll_interfaces(&self) {
    let timestamp =
        Instant::from_micros_const((current_time_nanos() / NANOS_PER_MICROS) as i64);

    LOOPBACK.lock().poll(
        timestamp,
        LOOPBACK_DEV.lock().deref_mut(),
        &mut self.0.lock(),
    );

    ETH0.poll(&self.0);
}
@Azure-stars Azure-stars added the bug Something isn't working label Jul 28, 2024
@Azure-stars Azure-stars self-assigned this Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant