這里詳細(xì)描述問題
使用webman redis queue出現(xiàn)協(xié)程錯誤:
根據(jù)錯誤分析猜測是redis queue中redis 配置中沒有連接池導(dǎo)致多協(xié)程公用同一個(gè)redis連接導(dǎo)致錯誤出現(xiàn)。
\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
alibaba linux 3.1
webman 2.1
webman/redis-queue 1.3