From 93b76aaf1a467ec656872fd004921a0a63ad84a5 Mon Sep 17 00:00:00 2001 From: 7bp Date: Tue, 18 Dec 2012 13:42:34 +0100 Subject: [PATCH] Last single character chunk not read - fixed. When solr returns a 2x 8192 + 1 length response in chunk transfer mode the last chunk is not being added to the result. Therefor the json string cannot be decoded properly. --- Search/src/handlers/solr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Search/src/handlers/solr.php b/Search/src/handlers/solr.php index 1b6890b82..55c6d513f 100644 --- a/Search/src/handlers/solr.php +++ b/Search/src/handlers/solr.php @@ -236,7 +236,7 @@ public function sendRawGetCommand( $type, $queryString = array() ) $chunkLength = hexdec( $line ); $size = 1; - while ( $size < $chunkLength ) + while ( $size <= $chunkLength ) { $line = $this->getLine( $chunkLength ); $size += strlen( $line );