diff --git a/redis_session.php b/redis_session.php index b0bfefb..5f64413 100644 --- a/redis_session.php +++ b/redis_session.php @@ -365,7 +365,7 @@ protected function readBulkReply($reply) // If the amount left to read is less than 1024 then just read the rest, else read 1024 $block_size = ($size - $read) > 1024 ? 1024 : ($size - $read); $response .= fread($this->connection, $block_size); - $read += $block_size; + $read = strlen($response); } // Get rid of the CRLF at the end fread($this->connection, 2);