소스 검색

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.
Daniele Alessandri 9 년 전
부모
커밋
0ec9f3351f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Connection/Aggregate/SentinelReplication.php

+ 1 - 1
src/Connection/Aggregate/SentinelReplication.php

@@ -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.