Expect heartbeat in checkIsOk

This commit is contained in:
2021-01-31 18:11:24 +03:00
parent 72dca5c73b
commit a66f622cf6

View File

@@ -164,6 +164,12 @@ abstract class Connection
{
$response = $this->readResponse();
if ($response->isHeartBeat()) {
$this->command('NOP');
$response = $this->readResponse();
}
if (!$response->isOk()) {
throw new BadResponse($response);
}