脚本重启时workerman.log日志里有报错。
php start.php restart -d
2024-05-06 11:15:40 pid:26950 Workerman[start.php] restart
2024-05-06 11:15:40 pid:26950 Workerman[start.php] is stopping ...
2024-05-06 11:15:40 pid:30867 Workerman[start.php] stopping ...
2024-05-06 11:15:40 pid:30879 ErrorException: stream_socket_sendto(): Broken pipe
in /data/ntapi/vendor/workerman/gateway-worker/src/Lib/Gateway.php:1239
Stack trace:
#0 [internal function]: {closure}()
#1 /data/ntapi/vendor/workerman/gateway-worker/src/Lib/Gateway.php(1239): stream_socket_sendto()
#2 /data/ntapi/vendor/workerman/gateway-worker/src/Lib/Gateway.php(1263): GatewayWorker\Lib\Gateway::sendBufferToGateway()
#3 /data/ntapi/vendor/workerman/gateway-worker/src/Lib/Gateway.php(1014): GatewayWorker\Lib\Gateway::sendToAllGateway()
#4 /data/ntapi/logic/Socket.php(79): GatewayWorker\Lib\Gateway::sendToGroup()
#5 /data/ntapi/logic/socket/Group.php(27): logic\Socket::sendToGroup()
PHP 7.4.33 (cli) (built: Feb 14 2023 08:49:52) ( NTS )
webman/console v1.3.6 Webman console
webman/gateway-worker v1.0.8
webman/redis-queue v1.3.2 Redis message queue plugin for webman.
webman/think-orm v1.1.1
workerman/gateway-worker v3.1.17
workerman/redis v2.0.2
workerman/redis-queue v1.2.0 Message queue system written in PHP based on workerman and backed by Redis.
workerman/webman-framework v1.5.16 High performance HTTP Service Framework.
workerman/workerman v4.1.15 An asynchronous event driven PHP framework for easily building fast, scalable network applications.
服务停止时gateway worker之间的连接断开了,进程停止时的报错可以忽略
收到。谢谢。