mirror of
https://github.com/predis/predis.git
synced 2026-09-15 12:57:10 +00:00
Do not parse the response to a command if we get a QUEUED status reply from the server.
This commit is contained in:
+2
-2
@@ -572,8 +572,8 @@ class Connection implements IConnection {
|
||||
public function readResponse(Command $command) {
|
||||
$socket = $this->getSocket();
|
||||
$handler = Response::getPrefixHandler(fgetc($socket));
|
||||
$response = $command->parseResponse($handler($socket));
|
||||
return $response;
|
||||
$response = $handler($socket);
|
||||
return $response !== 'QUEUED' ? $command->parseResponse($response) : $response;
|
||||
}
|
||||
|
||||
public function rawCommand($rawCommandData, $closesConnection = false) {
|
||||
|
||||
Reference in New Issue
Block a user