Set `read_timeout` to something low - this is random, and i have not reason behind `10 miliseconds`.

This commit is contained in:
Martin Slot 2023-11-28 12:20:56 +01:00
parent 66ddc37a39
commit aa35f99f5d
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ impl Host {
Err(e) => return Err(HostError::ReadError),
};
match stream.set_read_timeout(Some(Duration::new(1, 0))) {
match stream.set_read_timeout(Some(Duration::from_millis(10))) {
Ok(_) => {}
Err(_) => return Err(HostError::ReadError),
};