Skip to content

Commit

Permalink
fixed redis connection to deal with large data
Browse files Browse the repository at this point in the history
  • Loading branch information
pyurin authored and cebe committed Dec 17, 2014
1 parent 3250586 commit a739e6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/redis/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Yii Framework 2 redis extension Change Log
2.0.2 under development
-----------------------

- no changes in this release.
- Bug #6547: Fixed redis connection to deal with large data in combination with `mget()` (pyurin)


2.0.1 December 07, 2014
Expand Down
2 changes: 1 addition & 1 deletion extensions/redis/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ private function parseResponse($command)
$length = $line + 2;
$data = '';
while ($length > 0) {
if (($block = fread($this->_socket, $line + 2)) === false) {
if (($block = fread($this->_socket, $length)) === false) {
throw new Exception("Failed to read from socket.\nRedis command was: " . $command);
}
$data .= $block;
Expand Down

0 comments on commit a739e6f

Please sign in to comment.