Skip to content

Commit 1977680

Browse files
authored
Increase timeout for engine communication (#1102)
1 parent e9e5e0e commit 1977680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/engine_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def __init__(self, commands: COMMANDS_TYPE, options: OPTIONS_GO_EGTB_TYPE, stder
490490
:param popen_args: The cwd of the engine.
491491
"""
492492
super().__init__(options, draw_or_resign)
493-
self.engine = chess.engine.SimpleEngine.popen_uci(commands, timeout=10., debug=False, setpgrp=True, stderr=stderr,
493+
self.engine = chess.engine.SimpleEngine.popen_uci(commands, timeout=60., debug=False, setpgrp=True, stderr=stderr,
494494
**popen_args)
495495
self.configure(options, game)
496496

@@ -511,7 +511,7 @@ def __init__(self, commands: COMMANDS_TYPE, options: OPTIONS_GO_EGTB_TYPE, stder
511511
:param popen_args: The cwd of the engine.
512512
"""
513513
super().__init__(options, draw_or_resign)
514-
self.engine = chess.engine.SimpleEngine.popen_xboard(commands, timeout=10., debug=False, setpgrp=True,
514+
self.engine = chess.engine.SimpleEngine.popen_xboard(commands, timeout=60., debug=False, setpgrp=True,
515515
stderr=stderr, **popen_args)
516516
egt_paths = cast(EGTPATH_TYPE, options.pop("egtpath", {}) or {})
517517
protocol = cast(chess.engine.XBoardProtocol, self.engine.protocol)

0 commit comments

Comments
 (0)