Expect heartbeat in checkIsOk
This commit is contained in:
@@ -164,6 +164,12 @@ abstract class Connection
|
|||||||
{
|
{
|
||||||
$response = $this->readResponse();
|
$response = $this->readResponse();
|
||||||
|
|
||||||
|
if ($response->isHeartBeat()) {
|
||||||
|
$this->command('NOP');
|
||||||
|
|
||||||
|
$response = $this->readResponse();
|
||||||
|
}
|
||||||
|
|
||||||
if (!$response->isOk()) {
|
if (!$response->isOk()) {
|
||||||
throw new BadResponse($response);
|
throw new BadResponse($response);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user