測試發(fā)現(xiàn)在 onClose 時(shí)用 count($worker->connections) 去統(tǒng)計(jì)還是之前的數(shù)量,請問大佬是不是 onClose 事件觸發(fā)時(shí),Workerman 還沒有完全清理 $worker->connections 中的連接?...
有個(gè)疑問 官方文檔地址:http://m.wtbis.cn/doc/webman/db/thinkorm.html 問題描述: 安裝 webman/think-orm 插件時(shí),為什么還需要指定 psr/container 包的版本? composer -W require psr/container ^1.1.1 webman/think-orm 在還沒有執(zhí)行上述命令之前,搜了全局,發(fā)現(xiàn)就 worke...
walkor 大神你好,麻煩請教下 workerman 文檔中 MySQL 組件 > 其他數(shù)據(jù)庫類,是否也和 workerman/mysql 組件一樣,當(dāng)發(fā)生mysql gone away 錯(cuò)誤時(shí),會(huì)自動(dòng)重試? onWorkerStart 回調(diào)中創(chuàng)建的數(shù)據(jù)庫連接是只屬于當(dāng)前子進(jìn)程的吧,也就是假設(shè)開啟了 4 個(gè)子進(jìn)程,那么也就是相當(dāng)于會(huì)創(chuàng)建 4 個(gè)數(shù)據(jù)庫句柄. ...