From 24c970667e0abb6012ce0b580cf8707145513d79 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 14 Jan 2015 11:54:38 -0800 Subject: [PATCH] Tweaked BagOStuff::lock() retry times slightly to be faster Change-Id: Id04e373dcd2ed57951b68432fcd7491f4288b028 --- includes/objectcache/BagOStuff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/objectcache/BagOStuff.php b/includes/objectcache/BagOStuff.php index 0a2344688b..85b0b62087 100644 --- a/includes/objectcache/BagOStuff.php +++ b/includes/objectcache/BagOStuff.php @@ -192,7 +192,7 @@ abstract class BagOStuff { $locked = false; // lock acquired $attempts = 0; // failed attempts do { - if ( ++$attempts >= 3 && $sleep <= 1e6 ) { + if ( ++$attempts >= 3 && $sleep <= 5e5 ) { // Exponentially back off after failed attempts to avoid network spam. // About 2*$uRTT*(2^n-1) us of "sleep" happen for the next n attempts. $sleep *= 2; -- 2.20.1