diff --git a/app/Factory.php b/app/Factory.php index 71ac894..5d27ca2 100644 --- a/app/Factory.php +++ b/app/Factory.php @@ -173,7 +173,7 @@ protected function addRoutes() protected function detectNextAvailablePort($startPort = 4040): int { - while (is_resource(@fsockopen('127.0.0.1', $startPort))) { + while (is_resource(@fsockopen('127.0.0.1', $startPort, timeout: 1))) { $startPort++; }