can not connect to tcp://xxx Operation now in progress

请教一下,这种错误一般怎么处理?
原来在一台服务器上部署没有出现过这种问题,把businessworker部署到局域网上后,偶尔会出现以下错误退出。
是因为Gateway太忙了吗?
谢谢!
2019-03-08 21:56:46 pid:32583 Worker[32583] process terminated2019-03-08 21:56:46 pid:32577 worker[bigiotWorker:32583] exit with status 64000
2019-03-08 21:56:50 pid:3726 Exception: can not connect to tcp://192.168.9.160:7004 Operation now in progress in /var/www/server/vendor/workerman/gateway-worker/src/Lib/Gateway.php:1143
Stack trace:
#0 /var/www/server/vendor/workerman/gateway-worker/src/Lib/Gateway.php(1092): GatewayWorker\Lib\Gateway::sendAndRecv('192.168.9.160:7...', Array)
#1 /var/www/server/vendor/workerman/gateway-worker/src/BusinessWorker.php(378): GatewayWorker\Lib\Gateway::getSession('c0a809a01b5c000...')
#2 [internal function]: GatewayWorker\BusinessWorker->onGatewayMessage(Object(Workerman\Connection\AsyncTcpConnection), Array)
#3 /var/www/server/vendor/workerman/workerman/Connection/TcpConnection.php(658): call_user_func(Array, Object(Workerman\Connection\AsyncTcpConnection), Array)
#4 [internal function]: Workerman\Connection\TcpConnection->baseRead(Resource id #6994, 2, Resource id #6994)
#5 /var/www/server/vendor/workerman/workerman/Events/Event.php(195): EventBase->loop()
#6 /var/www/server/vendor/workerman/workerman/Worker.php(2321): Workerman\Events\Event->loop()
#7 /var/www/server/vendor/workerman/gateway-worker/src/BusinessWorker.php(197): Workerman\Worker->run()
#8 /var/www/server/vendor/workerman/workerman/Worker.php(1452): GatewayWorker\BusinessWorker->run()
#9 /var/www/server/vendor/workerman/workerman/Worker.php(1282): Workerman\Worker::forkOneWorkerForLinux(Object(GatewayWorker\BusinessWorker))
#10 /var/www/server/vendor/workerman/workerman/Worker.php(1256): Workerman\Worker::forkWorkersForLinux()
#11 /var/www/server/vendor/workerman/workerman/Worker.php(1586): Workerman\Worker::forkWorkers()
#12 /var/www/server/vendor/workerman/workerman/Worker.php(1535): Workerman\Worker::monitorWorkersForLinux()
#13 /var/www/server/vendor/workerman/workerman/Worker.php(509): Workerman\Worker::monitorWorkers()
#14 /var/www/server/start.php(45): Workerman\Worker::runAll()
#15 {main}
2019-03-08 21:56:50 pid:3726 Worker[3726] process terminated
2019-03-08 21:56:50 pid:32577 worker[bigiotWorker:3726] exit with status 64000

已邀请:

walkor

赞同来自:

报错的时候看下各个服务器的负载是不是高了。有可能是负载高了导致。
另外每台服务器都要装event扩展,并按照手册 http://doc.workerman.net/appendices/kernel-optimization.html 优化linux内核。一般普通内核配置不优化无法承载高并发。

要回复问题请先登录注册