Page MenuHomePhabricator

D21526.diff
No OneTemporary

D21526.diff

diff --git a/src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php b/src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php
--- a/src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php
+++ b/src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php
@@ -318,6 +318,11 @@
'Acquiring write lock for repository "%s"...',
$repository->getDisplayName()));
+ // See T13590. On the HTTP pathway, it's possible for us to hit the script
+ // time limit while holding the durable write lock if a user makes a big
+ // push. Remove the time limit before we acquire the durable lock.
+ set_time_limit(0);
+
$lock_wait = phutil_units('2 minutes in seconds');
try {
$write_wait_start = microtime(true);

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 7:36 PM (20 h, 55 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6790624
Default Alt Text
D21526.diff (808 B)

Event Timeline