1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +01:00

Provide a missing timeout on the non-cluster connection pathway

Summary:
Ref T11232. The cluster connection pathway specifies a timeout when connecting, but this connection pathway does not. (I'm not sure if we just never did or if it got lost at some point.)

Soon, T11044 will obsolete this and unify the database connection pathways, but that's a more complicated change.

I'm not sure if this will fix T11232, but it can't hurt.

Test Plan: Put a `throw` on timeout specifications. Before the change: did not hit it in non-cluster configurations. After the change: hit it.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11232

Differential Revision: https://secure.phabricator.com/D16194
This commit is contained in:
epriestley 2016-06-29 11:15:31 -07:00
parent 2b76785a13
commit 9827cc1622

View file

@ -99,6 +99,7 @@ abstract class PhabricatorLiskDAO extends LiskDAO {
'port' => $conf->getPort(),
'database' => $database,
'retries' => 3,
'timeout' => 10,
),
));
}