{ "name": "workerman/webman", "type": "project", "keywords": [ "high performance", "http service" ], "homepage": "https://www...
问题描述 情况1:(Windows)本地 webman + ThinkCache 组件使用 Redis 驱动,正常。 情况2:(Linux)服务器 webman + ThinkCache 组件使用 Redis 驱动,无反应,不报错。 情况3:(Linux)服务器 webman + 自己写连接,不用组件,无反应,不报错。 情况4:(Linux)服务器 普通PHP脚本 + 自己写连接,不用组件,正常。 问题会出在哪里? ...
问题描述 由于端口原因域名需要使用非80的端口,xxx.xxx.com:8080 这种,webman没有原生$_SERVER获取访问域名,通过文档的request()->host()说是可以获取访问域名但是一直拿到的是配置的ip,通过request()->header()可以看到域名但是没有追加的8080端口,问一下大佬们 webman里面怎么自动获取访问域名的全地址啊?...
问题描述 间歇性出现报错,重启就能解决,已调整linux 内核 报错信息 ErrorException: scandir(/www/wwwroot/110.42.57.86_3111/app): Failed to open directory: Too many open files in /www/wwwroot/110.42.57.86_3111/vendor/workerman/webman-framewor...
问题描述 只改了 cookie_lifetime 为 0,其余为默认的没动,关闭浏览器后自动失效cookie登录状态,但是没生效。 <?php /** * This file is part of webman. * * Licensed under The MIT License * For full copyright and license information, please see the ...
问题描述 我写了两个方法,一个用于存储session,一个用于获取session,无论怎么存,获取到都是最开始旧的那个数据,一旦我停止php start.php stop,再启动,他就会重新存一次,最后我使用了$session->save();,才得到解决,文档中有说什么session对象销毁时会自动保存session数据,可是我都压根不知道在哪里销毁的,文档也没有说,就连最简单的验证码功能都是这样的问题,一个...
问题描述 这里详细描述问题 1、验证码类提示过期: Webman\Captcha\CaptchaBuilder::__construct(): Implicitly marking parameter $builder as nullable is deprecated, the explicit nullable type must be used instead 2、edge 登录后不能正常跳转,谷歌浏览器没问题...
问题描述 使用官方的限流器,无法自己捕捉异常。直接请求api是对的,用axios访问时候触发异常就报跨域错误了 postman请求是正常的 axios请求触发限流就报跨域 我怀疑是这个官方限流器response被清空了 有大佬知道吗 这里详细描述问题 程序代码 #[RateLimiter(limit: 1, ttl: 60, message: 'Request limit reached. Please try...
问题描述 服务器2核4g 宝塔部署异步项目 用localhost不考虑网络问题 ab -n 10000 -c 5000 -k localhost:8787/hi 这里写问题具体描述 ...
问题描述 这里写描述 $decaySeconds = 60; Limiter::check($key, $maxAttempts, $decaySeconds, $message); ...
问题描述 这里写问题描述 我使用协程事件驱动时,访问8787的index页面主进程并未直接返回response的结果,而是等待协程进程执行完毕后才返回结果 public function index(Request $request) { Coroutine::create(function(){ Timer::sleep(5); echo "h...
问题描述 workerman的长连接 方向 1.平滑重启服务 重启不断开ws长连接 转发到task处理 每次只重启task 2.任意线程都可以向任意长连接发ws数据包,关闭链接 (unixSocket远程调用) 2个方向有没有搞头...
问题描述 想实现的效果:想在thinkphp8的基础上不改变老项目实现与webman 并存 情况介绍:原项目 是用 thinkphp8 开发的 项目很大 ,现在用户端 经常出现 cpu 100% 打满的情况 ,如果说整体迁移到webman 会不习惯 并且 工程量比较大; 可行的 解决方案: .部分高并发的 接口使用 webman 单独成立项目 开发 和 thinkphp 部署在 同一服务器,并通过 nginx 转发 ...
问题描述 获取请求sessionId $request->sessionId(); 刷新页面就会发生变化,同一个浏览器同一个页面刷新就变。这个是配置问题吗? <?php /** * This file is part of webman. * * Licensed under The MIT License * For full copyright and license information...
问题描述 这里详细描述问题 最新版webman2.1使用以下这两个依赖包时报这个错误 webman/redis-queue illuminate/redis 报错信息 ...
问题描述 我的项目使用了多应用插件,这是我正常的路由【1】 Route::group('/test', function () { Route::get('/',[app\test\controller\TestController::class, 'index']); }} 这是我有问题的路由【2】 Route::group('/test', function () { Route::get('/', functi...
现在是这样的: 能否在这里面展示一下进程号呢? 因为我的 log 里内容是这样的: 2025-02-05 16:46:54 pid:8474 Workerman[start.php] restart 2025-02-05 16:46:54 pid:8474 Workerman[start.php] is stopping ... 2025-02-05 16:46:54 pid:8474 Workerman[sta...
./composer.json has been updated Running composer update webman/think-cache --with-all-dependencies Loading composer repositories with package information Updating dependencies Your requirements could not be re...
问题描述 webman 1.6.14 版本 多应用 请求报错,但是多刷新几次就不报错误了 ErrorException: include(/app/www/game/game_user/app/api/controller/userController.php): Failed to open stream: No such file or directory in /app/www/game/game_user/v...