Commit 23452bd
committed
Add timeout to calibrateDelay to prevent CI hangs
The calibration shSync calls used delay=0 with no timeout, which could
block indefinitely if prompt detection fails (e.g. on slow SSH containers
in CI where output arrives in multiple TCP fragments). Add a 10-second
timeout per calibration call and gracefully fall back to the default
delay if any call times out.1 parent f2c5c49 commit 23452bd
1 file changed
Lines changed: 19 additions & 2 deletions
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
360 | 364 | | |
361 | 365 | | |
362 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
363 | 374 | | |
364 | 375 | | |
365 | 376 | | |
366 | 377 | | |
367 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
368 | 385 | | |
369 | 386 | | |
370 | 387 | | |
| |||
0 commit comments