Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14047930
D15799.id38064.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
580 B
Referenced Files
None
Subscribers
None
D15799.id38064.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 15, 5:51 AM (4 d, 4 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6728444
Default Alt Text
D15799.id38064.diff (580 B)
Attached To
Mode
D15799: Prevent web queries from running for more than 30 seconds
Attached
Detach File
Event Timeline
Log In to Comment