redis-queue 没有连接池导致协程错误

qq260912391

问题描述

这里详细描述问题
使用webman redis queue出现协程错误:
根据错误分析猜测是redis queue中redis 配置中没有连接池导致多协程公用同一个redis连接导致错误出现。

程序代码

\Webman\RedisQueue\Redis::send(getenv('queue'), $data);

报错信息

PHP Fatal error: Uncaught Swoole\Error: Socket#12 has already been bound to another coroutine#3215, reading of the same socket in coroutine#3217 at the same time is not allowed in

操作系统及workerman/webman等框架组件具体版本

alibaba linux 3.1
webman 2.1
webman/redis-queue 1.3

167 1 0
1个回答

下次记得有问题,先升级。

  • qq260912391 4天前

    谢谢,切换了源就升级到2.1.0就解决了,之前是1.3

×
🔝