]> granicus.if.org Git - php/commitdiff
Display a message if select in FPM test timeouts
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 8 Jan 2020 14:56:37 +0000 (15:56 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 8 Jan 2020 14:57:05 +0000 (15:57 +0100)
sapi/fpm/tests/tester.inc

index b2a387638e915c23e02daedbe42b55c870934485..7d43d5e8b2673c5d8c122c614e77552d21dbd28d 100644 (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;
         }
     }