diff --git a/src/Console/ConsoleService.php b/src/Console/ConsoleService.php index dd075d6c..30b52863 100644 --- a/src/Console/ConsoleService.php +++ b/src/Console/ConsoleService.php @@ -63,6 +63,9 @@ function __construct() public function push(string $string) { + /* + * 服务启动前不做push.为cli单元测试预备 + */ if(!ServerManager::getInstance()->isStart()){ return; } @@ -121,7 +124,9 @@ public function __registerTcpServer() $sub->set($sub::onClose, function (\swoole_server $server, int $fd, int $reactorId) { foreach ($this->authTable as $key => $value){ if($value['fd'] === $fd){ - $this->authTable->del($key); + $this->authTable->set($key,[ + 'fd'=>null + ]); } } }); diff --git a/src/SysConst.php b/src/SysConst.php index fe708df2..9ecbfbd1 100644 --- a/src/SysConst.php +++ b/src/SysConst.php @@ -11,7 +11,7 @@ class SysConst { - const EASYSWOOLE_VERSION = '3.1.12'; + const EASYSWOOLE_VERSION = '3.1.13'; const LOGGER_HANDLER = 'LOGGER_HANDLER'; const ERROR_HANDLER = 'ERROR_HANDLER'; const TRIGGER_HANDLER = 'TRIGGER_HANDLER';