diff options
author | Frédéric Guillot <fred@kanboard.net> | 2018-02-14 10:18:27 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2018-02-14 10:18:27 -0800 |
commit | 0d578171feed5e09afc258346c183cf905333f4a (patch) | |
tree | 89e812512d4d6aa2e310538c9a2be8a030692176 /app | |
parent | b096e907cf003659cf1b504787363352191fc639 (diff) |
Add timeout parameter for database connection
Diffstat (limited to 'app')
-rw-r--r-- | app/ServiceProvider/DatabaseProvider.php | 2 | ||||
-rw-r--r-- | app/constants.php | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/app/ServiceProvider/DatabaseProvider.php b/app/ServiceProvider/DatabaseProvider.php index ccd5a7b9..704e8079 100644 --- a/app/ServiceProvider/DatabaseProvider.php +++ b/app/ServiceProvider/DatabaseProvider.php @@ -136,6 +136,7 @@ class DatabaseProvider implements ServiceProviderInterface 'ssl_ca' => DB_SSL_CA, 'ssl_cert' => DB_SSL_CERT, 'verify_server_cert' => DB_VERIFY_SERVER_CERT, + 'timeout' => DB_TIMEOUT, )); } @@ -156,6 +157,7 @@ class DatabaseProvider implements ServiceProviderInterface 'password' => DB_PASSWORD, 'database' => DB_NAME, 'port' => DB_PORT, + 'timeout' => DB_TIMEOUT, )); } } diff --git a/app/constants.php b/app/constants.php index 4b87d18e..35d651e8 100644 --- a/app/constants.php +++ b/app/constants.php @@ -54,6 +54,7 @@ defined('DB_SSL_KEY') or define('DB_SSL_KEY', null); defined('DB_SSL_CERT') or define('DB_SSL_CERT', null); defined('DB_SSL_CA') or define('DB_SSL_CA', null); defined('DB_VERIFY_SERVER_CERT') or define('DB_VERIFY_SERVER_CERT', null); +defined('DB_TIMEOUT') or define('DB_TIMEOUT', null); // Database backend group provider defined('DB_GROUP_PROVIDER') or define('DB_GROUP_PROVIDER', true); |