diff --git a/HttpServer/Action.php b/HttpServer/Action.php index 1be47456..5e4aec4b 100644 --- a/HttpServer/Action.php +++ b/HttpServer/Action.php @@ -60,6 +60,7 @@ trait Action if (!empty($output)) { exec("kill -15 $content"); } + unset($content); $this->close($server); } @@ -90,7 +91,7 @@ trait Action if (!$this->masterIdCheck()) { break; } - usleep(100); + sleep(1); } echo PHP_EOL; } @@ -107,6 +108,8 @@ trait Action return false; } foreach ($files as $file) { + clearstatcache(true, $file->getFilename()); + $content = file_get_contents($file->getRealPath()); exec("ps -ax | awk '{ print $1 }' | grep -e '^{$content}$'", $output); if (count($output) > 0) { diff --git a/HttpServer/Server.php b/HttpServer/Server.php index 876b6c04..6b0d25ed 100644 --- a/HttpServer/Server.php +++ b/HttpServer/Server.php @@ -159,7 +159,6 @@ class Server extends HttpService * @param $host * @param $Port * @return Packet|Websocket|Receive|Http|null - * @throws ComponentException * @throws Exception */ public function error_stop($host, $Port): Packet|Websocket|Receive|Http|null