Skip to content

Commit 357c282

Browse files
committed
ACP2E-2138: [Cloud]RabbitMQ Broken pipe or closed connection errors during indexing
1 parent dc5c927 commit 357c282

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/internal/Magento/Framework/Amqp/Config.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ public function getChannel()
176176
|| !$this->channel->getConnection()
177177
|| !$this->channel->getConnection()->isConnected()
178178
) {
179+
if (!$this->connection->isConnected()) {
180+
$this->connection->reconnect();
181+
}
179182
$this->channel = $this->connection->channel();
180183
}
181184

0 commit comments

Comments
 (0)