Repository: thrift
Updated Branches:
  refs/heads/master 254b4583f -> 0104da5a6


THRIFT-2073: Fixed Thrift C++ THttpClient error: cannot refill buffer

Fixed-by: Qiang Li <[email protected]>
Sponsored-by: Roger Meier <[email protected]>
Signed-off-by: Claudius Heine <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/0104da5a
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/0104da5a
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/0104da5a

Branch: refs/heads/master
Commit: 0104da5a6fe0ef5c52f82198998718cdd8623c4a
Parents: 254b458
Author: Claudius Heine <[email protected]>
Authored: Mon Jul 6 12:51:09 2015 +0200
Committer: Roger Meier <[email protected]>
Committed: Fri Jul 10 22:13:36 2015 +0200

----------------------------------------------------------------------
 lib/cpp/src/thrift/transport/THttpTransport.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/0104da5a/lib/cpp/src/thrift/transport/THttpTransport.cpp
----------------------------------------------------------------------
diff --git a/lib/cpp/src/thrift/transport/THttpTransport.cpp 
b/lib/cpp/src/thrift/transport/THttpTransport.cpp
index eccac90..a466ff6 100644
--- a/lib/cpp/src/thrift/transport/THttpTransport.cpp
+++ b/lib/cpp/src/thrift/transport/THttpTransport.cpp
@@ -95,8 +95,9 @@ uint32_t THttpTransport::readMoreData() {
     size = readChunked();
   } else {
     size = readContent(contentLength_);
+    readHeaders_ = true;
   }
-  readHeaders_ = true;
+
   return size;
 }
 

Reply via email to