Skip to content

Commit 781be5a

Browse files
committed
Increase a bit the time we may wait for the engine
1 parent 96d1386 commit 781be5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/eval.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl Engine {
6868
let mut reader = BufReader::new(child.stdout.as_mut().unwrap());
6969
let mut buf_str = String::new();
7070
loop {
71-
let uciok_timeout = timeout(Duration::from_millis(5000),
71+
let uciok_timeout = timeout(Duration::from_millis(7000),
7272
reader.read_line(&mut buf_str)
7373
).await;
7474
if let Err(_) = uciok_timeout {
@@ -85,7 +85,7 @@ impl Engine {
8585
child.stdin.as_mut().unwrap().write_all(b"isready\n").await.expect("Error communicating with engine");
8686
buf_str = String::new();
8787
loop {
88-
let readyok_timeout = timeout(Duration::from_millis(5000),
88+
let readyok_timeout = timeout(Duration::from_millis(7000),
8989
reader.read_line(&mut buf_str)
9090
).await;
9191
if let Err(_) = readyok_timeout {

0 commit comments

Comments
 (0)