mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 08:29:06 +00:00
Set a default timeout of 5 seconds for database connections
This commit is contained in:
parent
1437d0155a
commit
d9fe00a23c
@ -176,6 +176,7 @@ final class Settings {
|
||||
}
|
||||
|
||||
$options = array(
|
||||
PDO::ATTR_TIMEOUT => 5,
|
||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||
PDO::ATTR_EMULATE_PREPARES => false,
|
||||
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8",
|
||||
|
Loading…
x
Reference in New Issue
Block a user