Page MenuHomePhabricator

D15799.diff
No OneTemporary

D15799.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,6 +75,12 @@
$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.
+ if (php_sapi_name() != 'cli') {
+ $connection->setQueryTimeout(30);
+ }
+
return $connection;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Jul 19, 7:09 PM (1 d, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8533839
Default Alt Text
D15799.diff (580 B)

Event Timeline