Actions
Feature #87111
closedRemove @internal for ConnectionPool::resetConnections()
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2018-12-09
Due date:
% Done:
100%
Estimated time:
PHP Version:
7.2
Tags:
Complexity:
no-brainer
Sprint Focus:
Description
ConnectionPool::resetConnections() is currently marked as @internal but is required to reset connections before spawning new child processes in the scheduler task.
Background: Aimeos has the ability to utilize multi-core systems efficiently by using PHP pcntl function but after a child process finishes, it closes all inherited database connections from its parent process. The scheduler grabs a DB connection afterwards to update the task status but the native database client returns "lost connection" for the already closed connection returned by the connection pool. This can be avoided by calling resetConnections() before spawning new child processes.
Actions