前端一直显示待处理

后端使用gateway-worker,PHP8.1.5,TencentOS server 3.1(tk 4). 有时候服务端已经返回数据了,有时候前端一直是待处理,直到二三十秒后才返回数据甚至超时断开,服务端没有报错,曾怀疑数据库问题,注释掉了数据库相关代码还是一样的情况。workerman.log里也没有错误的记录。 请问这是啥情况 ...

JIangRenJin 发表与 2022-05-07 2965 浏览 2 回答
探讨一下webman的微服务方案,以及熔断和限流的方案

如题,单体应用拆分成多个服务,互相 RPC 调用,但是没有服务注册、熔断、限流这些算微服务吗? 在webman中,你有实现熔断和限流的好方案,甚至是全套PHP微服务方案吗...

aphper 发表与 2022-05-06 4106 浏览 4 回答
Gateway 异常错误 stream_socket_client(): unable to connect to tcp://152.30.237.55:4002 (Operation now in progress是什么原因导致的?

业务Worker和注册中心是分布式部署 Register和Gateway php start.php status 截图 业务Worker php start.php status 截图 异常错误信息 stream_socket_client(): unable to connect to tcp://127.31.237.55:4002 (Operation now in progress)|/va...

Tinywan 发表与 2022-05-06 1643 浏览 2 回答
webman有类似于workerman的大文件下载方案吗?

1、背景 在用webman做http接口服务,开发一款前后端分离的应用 2、描述: 要实现:用户通过接口下载文件的功能,经测试通过下面的方法的可以进行下载: ```php <?php namespace app\controller; use support\Request; Class DownloadRep{ //下载备份文件 public function DownloadRepBa...

witersen 发表与 2022-05-06 2648 浏览 3 回答
我用GatewayWorker定时发送数据给多款设备,设备收到后,都会返回数据,那我要如何保存这些数据呢

我用的是TP5框架,内嵌了GatewayWorker,那我要如何保存这些数据呢...

q97056 发表与 2022-05-05 1167 浏览 2 回答
think-validate使用场景验证报错

使用的版本是 "topthink/think-validate": "^2.0" class MemberValidate extends Validate { protected $rule = [ 'name' => 'require|length:3,25', 'password' => 'require|length:8,16', 'e...

oscar 发表与 2022-05-05 2090 浏览 2 回答
最新版webman安装 composer require psr/container ^v1 webman/think-orm 失败

最新版webman安装 composer require psr/container ^v1 webman/think-orm 失败 Your requirements could not be resolved to an installable set of packages. Problem 1 Root composer.json requires webman/think-orm ^1.0 -> s...

admin-ym 发表与 2022-05-04 2344 浏览 1 回答
webman 自定义命令里,投递redis消息队列报错

报错截图 composer info截图 ...

luscio 发表与 2022-05-04 1271 浏览 1 回答
中间件相关问题

url路由进来=>中间件=>控制器逻辑层=>?(这里想加些操作,是写在哪里的啊?)=>输出数据到客户端...

qq330397652 发表与 2022-05-04 1283 浏览 1 回答
运行一段时间,提示process terminated with ERROR: E_ERROR &quot;Allowed memory size of 1073741824 bytes exhausted (tried to allocate 69632 bytes),之前发问过,苦于一直没解决,路过大佬看到在指点下,谢谢

2022-05-02 19:13:05 pid:9190 worker[BusinessWorker:12982] exit with status 65280 2022-05-02 22:37:43 pid:20691 Worker[20691] process terminated with ERROR: E_ERROR "Allowed memory size of 1073741824 bytes...

jy123 发表与 2022-05-04 3290 浏览 2 回答
请教ws断开后redis链接如何删除?

使用workerman实现了websocket服务端 业务中使用了 use Workerman\RedisQueue\Client; 在onClose内部关闭connection $ws->onClose = function($connection) { $connection->close(); unset($connection); }; 但是运行 php demo.php conn...

m15800825437@163.com 发表与 2022-05-04 1249 浏览 3 回答
GatewayWorker 运行一段时间出现 busy

运行 lsof -nPp 7337 显示: 172.22.191.228:3306这个是阿里云数据库的内网地址...

Qiu 发表与 2022-05-04 1343 浏览 1 回答
控制台 Timer报错

Timer报错, 是不是就会出现一大串 请问有人知道这个是怎么回事吗?...

13280048428 发表与 2022-05-01 1422 浏览 5 回答
启动项目时 突然报错

有遇到这种情况的吗。...

macho 发表与 2022-04-29 1072 浏览 1 回答
webman 定时任务

大家好,定时任务,我为了直观一点把文件分开了,不整合在一起,不影响性能或者稳定性把? return [ ...数据清除任务 ...数据统计任务 ...等等 ]; 但是时间有的是一样的 ...

mayibanjia 发表与 2022-04-28 5220 浏览 1 回答
webman自定义命令里,使用cache报错

...

luscio 发表与 2022-04-28 1263 浏览 2 回答
如果只使用illuminate/database,这两个illuminate/pagination illuminate/events需要安装吗

我只想使用illuminate/database; 也就是查询构造器这个功能。 像模型,分页这些功能都不需要,是不是只安装 composer require psr/container ~v1 illuminate/database 这样就可以了?...

oscar 发表与 2022-04-28 1384 浏览 1 回答
workerman 做TCP客户端,如何与远程的其他服务器进行二进制数据通信?

workerman 做TCP客户端,如何与远程的其他服务器进行二进制数据通信?因为我远程的服务器是采用TCP二进制数据通信的,是按字节流发送数据的,Byte类型数,请问我在workerman端应该怎么设置才能使用二进制数据通信?...

liushiwkmphp 发表与 2022-04-28 1455 浏览 1 回答
webman中间件监听sql;回调打印sql语句时自增

public function process(Request $request, callable $next) : Response { Db::connection()->listen(function (QueryExecuted $queryExecuted){ dump("[{$queryExecuted->time} ms] {$queryExecuted->sql}&quo...

sunsgne 发表与 2022-04-27 3071 浏览 1 回答
GatewayWorker基于Workerman开发,为什么GatewayWorker不支持动态发送二进制数据呢。。。

都看了论坛的问答,发现GatewayWorker不支持动态发送二进制数据,把项目卡住了 有没有什么解决办法啊...

sky258 发表与 2022-04-27 1231 浏览 2 回答

walkor

160141
积分
0
获赞数
0
粉丝数
2014-05-04 加入
×
🔝