-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Pulling USB out is not detected and eats 100% CPU #14
Comments
Confirming I can reproduce on my end in Linux. One interesting thing I noticed, is that this happens even with the Lines 115 to 117 in e77d168
@krant - Me either. I didn't have time to look much deeper into the chain of I have however, confirmed that changing the line to: Ok(0) => { tokio::time::sleep(Duration::from_millis(5)).await; continue}, Will reduce the CPU usage down from 100%, which might be enough to make it tolerable in the meantime, until someone gets a chance to dig deeper. |
tokio-serial example handles the pulling correctly: cargo run --features="rt codec" --example serial_println -- /dev/ttyACM0
[LOG DATA]
## Pull out USB
[PROGRAM EXITS] |
I seem to be able to reproduce this using the |
Steps to reproduce
Possible reason
This line is getting executed endlessly:
rust/src/connections/handlers.rs
Line 60 in 923d2b7
The text was updated successfully, but these errors were encountered: