mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Display a message if select in FPM test timeouts
This commit is contained in:
parent
eaa93f6b8a
commit
e2361498d5
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user