Display a message if select in FPM test timeouts

This commit is contained in:
Nikita Popov 2020-01-08 15:56:37 +01:00
parent eaa93f6b8a
commit e2361498d5

View File

@ -622,9 +622,11 @@ class Tester
$read = [$this->outDesc];
$write = null;
$except = null;
if (stream_select($read, $write, $except, 3)) {
$timeout = 3;
if (stream_select($read, $write, $except, $timeout)) {
return fgets($this->outDesc);
} else {
$this->error("Select timeout ($timeout seconds)");
return null;
}
}