问题描述 redis队列里使用同步的curl 手动抛异常,队列的log能记录。 使用httpClient在success里手动抛异常 日志里没记录。 多次测试都是这样的结果。 大佬们,你们使用的时候有没有遇到这种情况啊 程序代码或配置 无 重现问题的步骤 队列里使用httpClient,success里手动抛异常 操作系统环境及workerman/webman等具体版本 centos7.9 64位 workerman...
问题描述 这里详细描述问题 使用webman redis queue出现协程错误: 根据错误分析猜测是redis queue中redis 配置中没有连接池导致多协程公用同一个redis连接导致错误出现。 程序代码 \Webman\RedisQueue\Redis::send(getenv('queue'), $data); 报错信息 PHP Fatal error: Uncaught Swoole\Error: So...
问题描述 webman升级到最新版本,请求发现每次请求的Request对象都是同一个 具体详情 1.每次返回spl_object_hash都是同一个 2.每次获取到的对象值没有重置,假如说我第一次请求 username=test,setGet后username=hello_test, 但是下次请求的时候,我还是传递username=test,但是我通过方法获取到username直接就是hello_test,好像是个单...
问题描述 config/app.php 的debug => false, config/process.php monitor下的reloadable=>false 每次更新代码还是会自动热更新,请问有知道是什么环节出现问题了吗 这里写问题描述 php /www/wwwroot/webman/start.php start 启动代码是这个 尝试过 php /www/wwwroot/webman/start...
之前在windows打包并运行正常,更新console插件后打包就不能运行了: php webman.phar start 提示: Please run 'php windows.php' on windows system...
问题描述 这样写 webman框架里内存不能释放 我现在用 posix_kill(posix_getppid(), SIGUSR1); 来释放内存 还有其他方法吗 程序代码或配置 $inputFileName = '/public/upload/files/20250307/67ca6427f1a7.xlsx'; $reader = IOFactory::createReaderForFile(...
问题描述 在 PHP 8.4 上使用 workerman/http-client 时报错,来自此处的$base参数。 程序代码 use Workerman\Worker; require_once __DIR__ . '/vendor/autoload.php'; $worker = new Worker(); $worker->eventLoop = \Workerman\Events\Fiber::cl...
问题描述 我使用webman并开启协程(Workerman\Events\Swoole::class),使用1个进程跑,我在support\Request上加了一个getRequestId()和_requestId()的方法,这样每次请求进来,就可以生成一个对应的请求id(request_id),这样我可以在日志上查找关于某个请求(request_id)究竟发生了什么事情,然后我做了以下测试(写在后面),为何会有不同...
问题描述 <?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...