Page MenuHomePhabricator

D16578.diff
No OneTemporary

D16578.diff

diff --git a/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php b/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php
--- a/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php
+++ b/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php
@@ -75,10 +75,13 @@
$connection->setReadOnly(true);
}
- // Unless this is a script running from the CLI, prevent any query from
- // running for more than 30 seconds. See T10849 for discussion.
+ // Unless this is a script running from the CLI:
+ // - (T10849) Prevent any query from running for more than 30 seconds.
+ // - (T11672) Use persistent connections.
if (php_sapi_name() != 'cli') {
- $connection->setQueryTimeout(30);
+ $connection
+ ->setQueryTimeout(30)
+ ->setPersistent(true);
}
return $connection;

File Metadata

Mime Type
text/plain
Expires
Sep 15 2025, 11:11 AM (14 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8814777
Default Alt Text
D16578.diff (837 B)

Event Timeline