-
## 问题
- 在gateway-worker下,一启动框架`gateway`+`business`的CPU负载就很高,并且持续不下降
- 简单写了测试swow的函数,暂时没发现问题
- 翻阅源码,判断到是启动后注册registerAddress后CPU就很高(注释掉就正常)
- 写了以下简单的demo,希望可以得到协助排查
注:希望得到作者大大的联系方式~
## comp…
-
文档地址:https://docs.toast.run/swow-blog/chs/coroutine.html
麻烦更新一下,提供有效的入群二维码,感谢!
-
**Describe the bug / 问题描述**
websocket客户端再能读取到一部分根本就没发送的数据
**To Reproduce / 如何复现**
```php
-
swow版定时任务只能运行在协程执行策略,其余的如worker进程执行策略无法如调度,
但是,我业务会去执行一个cmd命令,这个命令可能执行时间特别长,
我测试了在协程模式下,同时只能阻塞运行一个,另一个会一直等待到我加入的超时时间。但是我测试在多进程下就不会阻塞,会一起执行
我测试是访问同一个链接是一个进程会阻塞,访问不同的链接是不同进程,不会阻塞
执行结果在图片里
!…
-
文件存储版本的session无效,打印的sessionid每次都不一样,而且前端没有set-cookie头,session文件数量一直在增加,其实是我一个人访问
使用的是swow
-
```
composer create-project hyperf/swow-skeleton
composer require hyperf/signal
composer require hyperf/process
```
配置如下:
config\autoload\signal.php
```
return [
'handlers' => [
…
-
在协程中运行is_dir无输出,返回错误码
Coroutine::run( function() {
var_dump(is_dir(__DIR__));
});
-
-
[swow](https://github.com/swow/swow)
-