-
Notifications
You must be signed in to change notification settings - Fork 83
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
Fix EZP-26907: avoid 'mysql has gone away' errors #207
base: master
Are you sure you want to change the base?
Conversation
Side note: it might be that this PR works for the 90% scenario, ie. eZP connected to a single DB, but not for the case where one eZP install uses different db connections for different siteaccesses. |
8be7dd5
to
e0d2602
Compare
Fixed the problem with the case where multiple doctrine db connections are declared. Ready for review. |
ping |
Anyone up for review ? |
It's a common problem for long running scripts. I wonder if the kernel would be able to handle it in a better way (and not just through a 'Server has gone away' error). |
@pkamps it is true that this is a problem as well for some long-running scripts, however it is a hard problem to fix for the general case, as it is pretty much related to mysql version, mysql configuration (which can sit in 3 places: mysql server, mysql client, php.ini) and the activity of the app (how frequently it executes queries). On the other hand this is a known error bound to happen almost all of the time, even though the indexation script does do frequent db queries, for the reason that the script does use the 'fork' system call, and it does not handle properly the passing around of the db-connection file descriptor. As far as I am aware, it is the only legacy script that does use fork. |
No description provided.