easyswoole icon indicating copy to clipboard operation
easyswoole copied to clipboard

swoole,easyswoole,swoole framework

Results 69 easyswoole issues
Sort by recently updated
recently updated
newest added

我按照[https://www.easyswoole.com/Components/Orm/problem.html](https://www.easyswoole.com/Components/Orm/problem.html)的试了下缺缺少invoke方法 按照[https://github.com/easy-swoole/orm](https://github.com/easy-swoole/orm)缺是缺少Model::invoke() 是不是1.x 2.x两个版本完全不一样了? 有没有2.x的文档? [https://www.easyswoole.com/Components/Orm/query.html](https://www.easyswoole.com/Components/Orm/query.html) 同时报告下 文档有误 [https://github.com/easy-swoole/orm](https://github.com/easy-swoole/orm) ![image](https://user-images.githubusercontent.com/28857775/177050743-30d08264-fa06-4545-b5dc-a57e7d5eda20.png)

``` https://wiki.swoole.com/#/server/methods?id=reload # 仅重启task进程 kill -USR2 主进程PID ``` 根据官方提示无法平滑重启Task进程、看源码应该是easyswoole重新实现了Task,那如何平滑重启呢。

### bug 当数据表结构中有类似: `ymd` int(10) unsigned GENERATED ALWAYS AS (from_unixtime(`instime`, ''%y%m%d'')) VIRTUAL NOT NULL 这种字段时,写操作如果不排除掉此类字段则会报错 ### 建议 1. 增加 VIRTUAL GENERATED 标识 2. ORM写操作时直接过滤掉此类字段

2022-03-31 11:29:04][trigger][notice]:[Return type of EasySwoole\ORM\AbstractModel::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at file:/root... line:133] 求助

1、检查日志没发现报错 2、查看了 netstat 发现了下面情况 [root@ai ~]# netstat -n | grep 9501 | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a,S[a]}' CLOSE_WAIT 20199 ESTABLISHED 576 3、不知道是什么原因造成 http 服务无法响应的,然后重启下 easyswoole, 就正常了...

$officialAccount->customerService->send(array $message); 这里的$message 需传一个数组, 文档里写,参考消息文档, 消息文档里是,消息类型的实例, 建议加一个方法, 把实例转化为,send方法里需要的数组格式

当路径中连续两个item为相同字符串时会出现验证错误 eg: 当我们调用 $policy->check($path) 如果$path传入的是类似这样 /Api/Admin/Merchant/Merchant/getMerchantList 因为有连续两个 Merchant 则会获取不到最后一个 getMerchantList 在class EasySwoole\Policy\PolicyNode 中的 search() 方法 调试可以看到 大约123行至125行中 是因为这个判断提前返回了 if($name == $this->name){ return $this; } 如果两个名字相同则返回,并不会继续向下判断。 经测试改成如下判断可以解决: if($name == $this->name &&...

![8269c8b393dca498f26b3c78198f635](https://user-images.githubusercontent.com/101161856/160784506-397468db-4eba-4185-8d18-d7ed88c58232.png) 传送门连接失效

微服务架构现在很流行,建议集成grpc框架,造福人类

软件版本: easyswoole: 3.5.1 php-amqplib/php-amqplib:3.1.2 swoole: 4.4.23 问题出现时机: 1、项目运行1天样子基本就会出现 SQLSTATE[HY000] [2006] MySQL server has gone away ,一旦自定义进程出现这个报错,必须重启进程才可以解决, 2、在项目消费者里面已经尝试加了 \Co::sleep(0.01);,并未解决mysql 链接断开的问题 一旦自定义进程报 MySQL server has gone away,后面的消费 依然是继续报: Connection reset by peer...