db icon indicating copy to clipboard operation
db copied to clipboard

BaseModel.php中的exec方法中连接没有正常释放掉的问题

Open wuyingwuji248656 opened this issue 2 years ago • 1 comments

BaseModel.php文件的第166行:“$execute = $statement->execute();”,如果在这里抛出PDO的异常后,连接没有释放掉。

wuyingwuji248656 avatar Aug 26 '22 09:08 wuyingwuji248656

这个因为我自己在swoole的代码里有捕获异常,导致出现PDO异常后,worker进程不会自动重启,然后PDO的连接也没有释放掉。

wuyingwuji248656 avatar Aug 26 '22 09:08 wuyingwuji248656