Commit a739e6fc by pyurin Committed by Carsten Brandt

fixed redis connection to deal with large data

fixes #6547 close #6482
parent 3250586c
......@@ -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
......
......@@ -406,7 +406,7 @@ class Connection extends Component
$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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment