问题描述 间歇性出现报错,重启就能解决,已调整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...
问题描述 使用的组件时workerman/crontab,看手册介绍的例子是在定时任务文件中的匿名函数中编写业务处理,如果我想在一个类种的某个方法里写业务逻辑。如何写才能调用到。 为此你搜索到了哪些方案及不适用的原因 我使用new Crontab('*/1 * * * * *',call_user_func([HomeController::class,'index'])); 就启动的时候执行了一次,后面不执行了。...
问题描述 想要代码 依赖这个时间 start time Workerman version:4.2.1 PHP version:8.1.29 start time:2024-12-19 11:23:55 run 0 days 0 hours 问题解决 采取大佬的 $_SERVER['REQUEST_TIME']...
问题描述 有时候处理请求时需要快速响应用户,而把慢业务继续留在进程里执行,就像php-fpm使用fastcgi_finish_request函数就能达到这个效果。我知道webman是php进程处理请求,我想问用webman有没有这种类似的处理慢业务方案? 除了文档里提到的使用 队列、慢业务进程等方案,还有其他方案吗? 为此你搜索到了哪些方案及不适用的原因 文档里提到的使用 队列、慢业务独立进程等方案,这些会增加程序设...