mirror of
https://github.com/predis/predis.git
synced 2026-08-30 12:15:03 +00:00
Cap the number of retries on connection failure.
I think it is better to have a default limit to the number of attempts when trying to send a command after a connection failure, I am just not sure if 20 is a good value but we can adjust it later.
This commit is contained in:
@@ -62,7 +62,7 @@ class SentinelReplication extends MasterSlaveReplication
|
||||
* 0 = no retry attempts (fails immediatly)
|
||||
* n = fail only after n retry attempts
|
||||
*/
|
||||
protected $retryLimit = -1;
|
||||
protected $retryLimit = 20;
|
||||
|
||||
/**
|
||||
* Flag for automatic fetching of available sentinels.
|
||||
|
||||
Reference in New Issue
Block a user