1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-20 05:42:40 +01:00

Close all DB connections when Daemons sleep

Summary: Fixes T2933

Test Plan:
As guided by Evan - by setting $tasks = array(); in PhabricatorTaskmasterDaemon.php
and running 'phd debug taskmaster' and 'show full processlist' on mysql as root. No extra connections
detected.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T2933

Differential Revision: https://secure.phabricator.com/D5654
This commit is contained in:
deedydas 2013-04-10 14:52:29 -07:00 committed by epriestley
parent 9bbce8de42
commit d028790dd7

View file

@ -9,4 +9,9 @@ abstract class PhabricatorDaemon extends PhutilDaemon {
$root = dirname($phabricator);
require_once $root.'/scripts/__init_script__.php';
}
protected function willSleep($duration) {
LiskDAO::closeAllConnections();
return;
}
}