Gateway 异常错误 stream_socket_client(): unable to connect to tcp://152.30.237.55:4002 (Operation now in progress是什么原因导致的?

Tinywan

业务Worker和注册中心是分布式部署

Register和Gateway php start.php status 截图

截图

业务Worker php start.php status 截图

截图

异常错误信息

stream_socket_client(): unable to connect to tcp://127.31.237.55:4002 (Operation now in progress)|/var/xxxxxxxxxx/vendor/workerman/gateway-worker/src/Lib/Gateway.php|755: clientId = ac1eed370fa300013fd6 [] []
1469 2 1
2个回答

walkor 打赏

可能和防火墙有关,关闭两台服务器的防火墙试下。

  • Tinywan 2022-05-06

    防火墙都是关闭的

  • walkor 2022-05-06

    我这没碰到过 Operation now in progress, 不确定是什么原因

  • li914 2022-05-06

    ?.? 会不会两台服务器网络不通

  • Tinywan 2022-05-06

    网络是通的,正常使用没问题,并发量(1万)一大就会出现这个异常,一天也就是4个左右

  • Tinywan 2022-05-06

    这是今天的

    [2022-05-06 11:42:50] default.ERROR: [onMessage] 其他异常消息:stream_socket_client(): unable to connect to tcp://172.30.237.55:4002 (Operation now in progress)|/home/www/xxxxxxxxxxx.com/vendor/workerman/gateway-worker/src/Lib/Gateway.php|755: clientId = ac1eed370fa300013fd6 [] []
    [2022-05-06 11:58:15] default.ERROR: [onMessage] 其他异常消息:stream_socket_client(): unable to connect to tcp://172.30.237.55:4007 (Operation now in progress)|/home/www/xxxxxxxxxxx.com/vendor/workerman/gateway-worker/src/Lib/Gateway.php|755: clientId = ac1eed370fa700016fc1 [] []
    [2022-05-06 11:58:19] default.ERROR: [onMessage] 其他异常消息:stream_socket_client(): unable to connect to tcp://172.30.237.55:4000 (Operation now in progress)|/home/www/xxxxxxxxxxx.com/vendor/workerman/gateway-worker/src/Lib/Gateway.php|755: clientId = ac1eed370fa600016f01 [] []
    [2022-05-06 11:58:19] default.ERROR: [onMessage] 其他异常消息:stream_socket_client(): unable to connect to tcp://172.30.237.55:4007 (Operation now in progress)/home/www/xxxxxxxxxxx.com/vendor/workerman/gateway-worker/src/Lib/Gateway.php|755: clientId = ac1eed370fa500017116 [] []
    [2022-05-06 11:58:19] default.ERROR: [onMessage] 其他异常消息:Trying to access array offset on value of type null|/home/www/xxxxxxxxxxx.com/support/redis/RedisHandler.php|329: clientId = ac1eed370fa700017005 [] []
  • Tinywan 2022-05-06

    这个问题之前有人反馈过了:https://github.com/walkor/GatewayWorker/issues/37

Tinywan

目前通过调整 Gateway 进程数,没有再出现这个问题

  • 暂无评论
年代过于久远,无法发表回答
×
🔝