Page MenuHomePhabricator

D10944.diff
No OneTemporary

D10944.diff

diff --git a/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php b/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php
--- a/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php
+++ b/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php
@@ -52,7 +52,14 @@
}
}
- $conn = @new mysqli(
+ $conn = mysqli_init();
+
+ $timeout = $this->getConfiguration('timeout');
+ if ($timeout) {
+ $conn->options(MYSQLI_OPT_CONNECT_TIMEOUT, $timeout);
+ }
+
+ @$conn->real_connect(
$host,
$user,
$pass,

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 26, 1:24 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7704001
Default Alt Text
D10944.diff (625 B)

Event Timeline