问题描述 <?php namespace app\controller; use support\Request; use support\Response; use Workerman\Protocols\Http\Chunk; class IndexController { public function index(Request $request) { $connection = $request-&g...
问题描述 这里详细描述问题 向一个不存在的表test2,插入数据,却不提示错误,启动命令行也没有想关错误 程序代码 public function view(Request $request): \support\Response { $parallel = new Coroutine\Parallel(); $name = $request->get('name'); for ($i = 0; $i <...
问题描述 workerman可以在通过[对象和资源的持久化]示例的代码方式添加,全局类也如此,但我发现webman好似没有关于这个全局类、全局变量如何添加的说明,那webman可以实现吗(实现全局类、全局变量)?...
问题描述 webman二进制打包,提示composer require webman/console ^1.2.24 ...
问题描述 webman升级到1.6后(workerman 为5.1),通过nginx转发请求到webman,部分请求会出现504(nginx)侧。在应用系统中加debug代码,发现请求已经被执行,在超过nginx的超时时间后,nginx 记录504日志。直觉是在webman发送数据的时候,出现了异常。 程序代码或配置 public function get() { var_dump(1); ...
问题描述 这里详细描述问题 webman/database[v2.1.0, ..., v2.1.4] require workerman/webman-framework ^2.1 || dev-master -> found workerman/webman-framework[dev-master, v2.1.0, v2.1.1] but it conflicts with your root compos...
问题描述 根据文档设置的每分钟执行,执行时间间隔有点异常, // 每分钟执行一次 new Crontab('0 */1 * * * *', function(){ // echo date('Y-m-d H:i:s')."\n"; echo posix_getpid().PHP_EOL; echo date('Y-m...
问题描述 程序代码或配置 public function httptest(): string { $url='https://baidu.com'; $http = new \Workerman\Http\Client(); $response=$http->get($url); return $response->get...
webman和swow都是最新版,环境linux,使用下面代码查询数据库并返回结果后,退出webman就会报警告: public function index(): Response { $value = \think\facade\Db::query('SELECT NOW() as now, sleep(5)'); //模拟慢查询 return json($value);...
问题描述 这里详细描述问题 程序代码 composer require -W webman/admin 报错信息 Problem 1 Root composer.json requires webman/admin ^2.1 -> satisfiable by webman/admin[v2.1.1]. webman/admin v2.1.1 requires workerman/webman-framew...
2.1版本引进了 连接池操作,以前的版本我记得有看到过帖子是使用count有多少,就有多少个连接, 那么在这种情况下我想问问,我不使用协程操作,我想使用最新2.1版本,但还是想自适应比如有多少个count就有多少个连接这种,我是不是可以不配置 options 和 pool 参数,以上疑问 包括了Mysql 和 Reids 配置 问题,请大佬解答一下...
问题描述 从这几天新闻来看,大模型开源是趋势,落到企业内部使用,为了合规和隐私大概率会是本地化私有化。 所以 webman-ai 可以考虑支持本地嵌入向量模型,比如 bge-m3 ,nomic-embed-text, 这个对企业来说是最好落地的,也是见效最快的。 可以参考下 cherry studio...
问题描述 宝塔安装最新版webman ai报错 报错信息 root@)))))))))))):/www/wwwroot/webman# composer require -W webman/admin webman/openai Do not run Composer as root/super user! See https://getcomposer.org/root for details Continue a...
问题描述 项目能正常运行,但是不停地报 Exception: Address already in use,导致日志有几个G大小 报错信息 2025-02-19 04:45:50 pid:23471 worker[none:30795] exit with status 64000 2025-02-19 04:45:50 pid:23471 worker[none:30796] exit with status 64...
问题描述 webman2.1 使用了swoole作为驱动 在测试协程上下文传输时报错 程序代码或配置 操作系统环境及workerman/webman等具体版本 composer "php": ">=8.1", "workerman/webman-framework": "^2.1", "monolog/monolog": "^2.0", "webman/console": ...
问题描述 在例子中,onMessage是一个协程,从这个协程进入新的协Coroutine::create,这个新的协程结束后返回onMessage协程,然后通过context获取user_info是成功,这样做法与user_info保存到一个变量$user_info中,然后进入新协程,协程结束后返回onMessage协程,照样拿到$user_info的值,那context方式跟用变量保存方式好像没什么区别?有没有人知...
问题描述 webman1.5.19+thinkorm2.0.62+webman/log1.2.1 无法记录执行的sql日志,请问大佬是我哪里配置有问题吗? 这里写问题描述 Webman-framework v1.5.19 topthink/think-orm 2.0.62 think orm webman/think-orm 1.1.3 webman/lo...