Closed ChangeChe closed 5 years ago
Details
在第n次 http:restart成功后,第n+1次的http:restart会失败,然后n+2次又成功
// php bin/swoft http:restart
[root@871a4e7355f8 user_center]# php bin/swoft http:restart 2019/07/11-09:54:54 [INFO] Swoole\Runtime::enableCoroutine 2019/07/11-09:54:54 [INFO] Swoft\SwoftApplication:setSystemAlias(490) Set alias @base=/home/www/user_center 2019/07/11-09:54:54 [INFO] Swoft\SwoftApplication:setSystemAlias(491) Set alias @app=@base/app 2019/07/11-09:54:54 [INFO] Swoft\SwoftApplication:setSystemAlias(492) Set alias @config=@base/config 2019/07/11-09:54:54 [INFO] Swoft\SwoftApplication:setSystemAlias(493) Set alias @runtime=@base/runtime 2019/07/11-09:54:54 [INFO] Project path is /home/www/user_center 2019/07/11-09:54:54 [INFO] Swoft\Processor\EnvProcessor:handle(52) Env file(/home/www/user_center/.env) is loaded 2019/07/11-09:55:16 [INFO] Swoft\Processor\AnnotationProcessor:handle(45) Annotations is scanned(autoloader 23, annotation 293, parser 59) 2019/07/11-09:55:16 [INFO] Swoft\Processor\BeanProcessor:handle(57) config path=/home/www/user_center/config 2019/07/11-09:55:16 [INFO] Swoft\Processor\BeanProcessor:handle(58) config env=dev 2019/07/11-09:55:16 [INFO] Swoft\Processor\BeanProcessor:handle(62) Bean is initialized(singleton 201, prototype 54, definition 34) 2019/07/11-09:55:16 [INFO] Swoft\Processor\EventProcessor:handle(37) Event manager initialized(31 listener, 3 subscriber) 2019/07/11-09:55:16 [INFO] Swoft\WebSocket\Server\Listener\AppInitCompleteListener:handle(40) WebSocket server route registered(module 0, message command 0) 2019/07/11-09:55:16 [INFO] Swoft\Error\Listener\AppInitCompleteListener:handle(37) Error manager init completed(2 type, 5 handler, 5 exception) 2019/07/11-09:55:16 [INFO] Swoft\Processor\ConsoleProcessor:handle(39) Console command route registered (group 12, command 38) Stopping ............ Stop the swoft(PID:12047) failed(timeout:10s)! [ERROR] Stop the old server failed!
嗯,stop 成功判断错了,已经修复
refer https://github.com/swoft-cloud/swoft-component/pull/470/commits/2be450bf11db5cab7dc5ac5facfab336a9a59acf
Details