Fix ConnectionErrorProof response count on single node read errors (#1739)
Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
This commit is contained in:
1 parent
839ef60ab2
commit
343a812a2b
3 files changed
+63
-6
No files matched your search
@@ -73,7 +73,7 @@ class ConnectionErrorProof extends Pipeline
|
||||
try {
|
||||
$responses[$i] = $connection->readResponse($command);
|
||||
} catch (CommunicationException $exception) {
|
||||
$add = count($commands) - count($responses);
|
||||
$add = $sizeOfPipe - count($responses);
|
||||
$responses = array_merge($responses, array_fill(0, $add, $exception));
|
||||
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user