Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

controller pool empty #573

Closed
feilisu opened this issue Apr 11, 2023 · 3 comments
Closed

controller pool empty #573

feilisu opened this issue Apr 11, 2023 · 3 comments

Comments

@feilisu
Copy link

feilisu commented Apr 11, 2023

[2023-04-11 12:23:05][][error]:[array (
'handle' => 'ThrowableHandler::exceptionHandle',
'code' => 0,
'message' => 'controller pool empty for App\Controller\Logistics\Job\Logistics',
'file' => '/data/code/vendor/easyswoole/http/src/Dispatcher.php',
'line' => 241,
'trace' => '#0 /data/code/vendor/easyswoole/http/src/Dispatcher.php(183): EasySwoole\Http\Dispatcher->controllerExecutor()
#1 /data/code/vendor/easyswoole/easyswoole/src/Core.php(265): EasySwoole\Http\Dispatcher->dispatch()
#2 {main}',
)]

我不太确定这个是什么场景造成的,希望帮忙排查一下。

我猜测是超过了最大创建次数$maxPoolNum,而已创建的都回收失败,但是不确定为什么回收失败

@XueSiLf
Copy link
Collaborator

XueSiLf commented Apr 23, 2023

出现这个异常的原因是你的App\Controller\Logistics\Job\Logistics类不属于控制器类,而你把他当控制器类使用了,你需要继承控制器基类 EasySwoole\Http\AbstractInterface\Controller

@feilisu
Copy link
Author

feilisu commented Apr 24, 2023

谢谢,现在问题已经解决,但是不是你描述的这个原因导致的,修复了某个场景中协程管道数据长时间未被pop的问题,对应这个问题再也没有出现了。

@feilisu feilisu closed this as completed Apr 24, 2023
@function-gy
Copy link

谢谢,现在描述的问题已经解决了,但是不是你的这个原因导致的,修复了某些场景中协程管道数据时间长和弹出的问题,回复这个问题就再也没有出现了。

我也遇到这个问题 具体是什么原因导致的能讲解下吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants