Closed kshart closed 2 years ago
* If `retries` = 0 then `Connection::executeCommand` on throwing `SocketException` will never close the connection and will not open [in code](https://github.com/yiisoft/yii2-redis/blob/ac8f7b75df9837d5b2a0f1cafa22cb815b9623a0/src/Connection.php#L697)
this is expected, if you do not tell it to retry, it does not retry.
For retries > 0 in case of errors in Connection::executeCommand do not write zero in retries
I agree that this should be fixed.
Eng translete
Problem
retries
= 0 thenConnection::executeCommand
on throwingSocketException
will never close the connection and will not open in coderetries
> 0 and an error will occur whenConnection::open
,retries
will always be 0 and (see item number 1) in codeWhat's expected?
For
retries
= 0 in case of errors inConnection::executeCommand
close connection Forretries
> 0 in case of errors inConnection::executeCommand
do not write zero inretries
What do you get instead?
For
retries
= 0 in case of errors inConnection::executeCommand
connection does not close Forretries
> 0 in case of errors inConnection::executeCommand
inretries
it is written zeroRus
Проблема
retries
= 0 тоConnection::executeCommand
приSocketException
никогда не закроет соединение и соответственно не откроет место в кодеretries
> 0 и при Connection::open произойдет ошибка,retries
будет всегда 0 и (смотреть пункт №1) место в кодеЧто ожидается?
для
retries
= 0 при ошибках вConnection::executeCommand
закрывать соединение дляretries
> 0 при ошибках вConnection::executeCommand
не обнулятьretries
Что вы получаем вместо этого?
для
retries
= 0 при ошибках вConnection::executeCommand
соединение не закрывается дляretries
> 0 при ошибках вConnection::executeCommand
обнуляетсяretries
Additional info