mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-02 12:20:58 +00:00
Set retry_max_delay to 5 seconds so that reconnects don't slow down exponentially
This commit is contained in:
parent
230203eadf
commit
c90cc61570
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue