diff --git a/HttpServer/Events/OnConnect.php b/HttpServer/Events/OnConnect.php index 166f2dfe..704d0b10 100644 --- a/HttpServer/Events/OnConnect.php +++ b/HttpServer/Events/OnConnect.php @@ -27,9 +27,6 @@ class OnConnect extends Callback { try { defer(fn() => fire(Event::SYSTEM_RESOURCE_RELEASES)); - - var_dump($fd.' On Connect'); - if (($clientInfo = $server->getClientInfo($fd, $reactorId)) === false) { return; } diff --git a/HttpServer/Service/Abstracts/Server.php b/HttpServer/Service/Abstracts/Server.php index 034e375b..2c5d8987 100644 --- a/HttpServer/Service/Abstracts/Server.php +++ b/HttpServer/Service/Abstracts/Server.php @@ -53,7 +53,7 @@ trait Server { $this->on('Shutdown', $this->createHandler('shutdown')); $this->on('Start', $this->createHandler('start')); - if ($this->setting['task_worker_num'] ?? 0 > 0) { + if (($this->setting['task_worker_num'] ?? 0) > 0) { $this->on('Finish', $this->createHandler('finish')); $this->on('Task', $this->createHandler('task')); } @@ -62,8 +62,8 @@ trait Server /** - * @throws \ReflectionException - * @throws \Snowflake\Exception\NotFindClassException + * @throws ReflectionException + * @throws NotFindClassException */ private function onManager() { @@ -76,8 +76,8 @@ trait Server /** - * @throws \ReflectionException - * @throws \Snowflake\Exception\NotFindClassException + * @throws ReflectionException + * @throws NotFindClassException */ private function onWorker() { @@ -89,8 +89,8 @@ trait Server /** - * @throws \ReflectionException - * @throws \Snowflake\Exception\NotFindClassException + * @throws ReflectionException + * @throws NotFindClassException */ private function onOther() {