她和她的猫

Results 16 comments of 她和她的猫

@ReigenDing Yes

I'm having the same problem. App Version: 1.118.0 build.180 Server Version: 1.118.2

Thank you! This is useful to me. @Renji-FR

可能的原因:https://github.com/hyperf/hyperf/issues/7517#issuecomment-3315871088

从调用栈上来看,每个请求创建 ApiJsonResource 对象时都会实例化新的 Config 组件,而 Config 组件初始化时需要扫描 `config/autoload` 目录下的配置文件。在高并发场景下,多个协程同时使用 Symfony\Finder 进行文件 I/O 操作导致了死锁。 解决方案就是从容器中获取 Config 对象,避免每个请求都需要实例化: ```php // 通过构造函数自动注入 class DefaultJsonResource { public function __construct(ConfigInterface $config) {} } // 或者...

我对 NSQ 和 SocketIO 不太熟悉。如果你能搭建一个最小可复现的 demo 放到 GitHub 上的话,我有空的时候可以帮你看看。