调取chatgpt的websocket的process_timeout问题

问题描述

这里详细描述问题
在用chatgpt时,出现process_timeout,回答短小的问题,不会出现这个错误,
回答较长或等待太久就会出现, 字打印完后就会出现这个提示。
chatgpt本身转发到国外,再一字字打出来,时间会久点,大佬们看可有什么解决方法吗?!

报错信息

2023-07-11 00:10:22 pid:19151 process_timeout:
#1 /www/htdocs/vendor/workerman/workerman/Events/Select.php(261): pcntl_signal_dispatch()
#2 /www/htdocs/vendor/workerman/workerman/Worker.php(2410): Workerman\Events\Select->loop()
#3 /www/htdocs/vendor/workerman/gateway-worker/src/BusinessWorker.php(197): Workerman\Worker->run()
#4 /www/htdocs/vendor/workerman/workerman/Worker.php(1543): GatewayWorker\BusinessWorker->run()
#5 /www/htdocs/vendor/workerman/workerman/Worker.php(1373): Workerman\Worker::forkOneWorkerForLinux()
#6 /www/htdocs/vendor/workerman/workerman/Worker.php(1347): Workerman\Worker::forkWorkersForLinux()
#7 /www/htdocs/vendor/workerman/workerman/Worker.php(547): Workerman\Worker::forkWorkers()
#8 /www/htdocs/vendor/topthink/think-worker/src/command/GatewayWorker.php(108): Workerman\Worker::runAll()
#9 /www/htdocs/vendor/topthink/think-worker/src/command/GatewayWorker.php(77): think\worker\command\GatewayWorker->start()
#10 /www/htdocs/vendor/topthink/framework/src/think/console/Command.php(210): think\worker\command\GatewayWorker->execute()
#11 /www/htdocs/vendor/topthink/framework/src/think/Console.php(654): think\console\Command->run()
#12 /www/htdocs/vendor/topthink/framework/src/think/Console.php(313): think\Console->doRunCommand()
#13 /www/htdocs/vendor/topthink/framework/src/think/Console.php(250): think\Console->doRun()
#14 /www/htdocs/think(10): think\Console->run()
#15 {main}

操作系统及workerman/webman等框架组件具体版本

Workerman version:3.5.34
PHP version:7.4.33

719 1 0
1个回答

walkor 打赏

升级gatewayWorker, 或者start_businessworker.php 里设置 $worker->processTimeout = 200;

  • 2023-07-11

    好的,多谢老大!

年代过于久远,无法发表回答
×
🔝