Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wuyingwuji248656 opened this issue Aug 26, 2022 · 1 comment

Comments

@wuyingwuji248656
Copy link

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

@wuyingwuji248656
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant