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:
Daniele Alessandri
2016-05-10 17:24:51 +02:00
parent 622e6c6ba2
commit 0ec9f3351f
@@ -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.