From c90cc61570986502a9b2288f3781df750fbbb6be Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 19 Nov 2014 11:02:27 +0000 Subject: [PATCH] Set retry_max_delay to 5 seconds so that reconnects don't slow down exponentially --- libraries/redis-wrapper/index.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/redis-wrapper/index.coffee b/libraries/redis-wrapper/index.coffee index a72613a0b6..ebf953fa06 100644 --- a/libraries/redis-wrapper/index.coffee +++ b/libraries/redis-wrapper/index.coffee @@ -2,6 +2,9 @@ _ = require("underscore") module.exports = RedisSharelatex = createClient: (opts = {port: 6379, host: "localhost"})-> + if !opts.retry_max_delay? + opts.retry_max_delay = 5000 # ms + if opts.password? opts.auth_pass = opts.password delete opts.password