use persistent connection, still not good
This commit is contained in:
parent
b536c64df9
commit
9fc399e280
|
@ -148,7 +148,7 @@ class Phone extends AbstractDaemon
|
|||
|
||||
foreach ($tasks as $task)
|
||||
{
|
||||
$task['process']->run();
|
||||
$task['process']->start();
|
||||
}
|
||||
|
||||
$done = false;
|
||||
|
|
|
@ -37,7 +37,8 @@
|
|||
{
|
||||
$options = $options ?? [
|
||||
\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC,
|
||||
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION
|
||||
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION,
|
||||
\PDO::ATTR_PERSISTENT => true,
|
||||
];
|
||||
|
||||
// On se connecte à MySQL
|
||||
|
|
Loading…
Reference in New Issue