From 559eed8c6c2a556c4d108510890249750f8cfeb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 11 Nov 2020 10:51:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Action.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HttpServer/Action.php b/HttpServer/Action.php index 630bc361..0e5e3da9 100644 --- a/HttpServer/Action.php +++ b/HttpServer/Action.php @@ -52,6 +52,7 @@ trait Action } else { $pathId = file_get_contents($socket); @unlink($socket); + clearstatcache($socket); if (empty($pathId)) { $this->close($server); @@ -102,6 +103,7 @@ trait Action $this->closeByPid($content); } else { @unlink($file->getRealPath()); + clearstatcache($file->getRealPath()); } } return true;