fixed a bug in TFramedTransport where it was checking a size for nonzero after byte...
authorrobert <dev-null@apache.org>
Tue, 19 Dec 2006 22:27:54 +0000 (22:27 +0000)
committerrobert <dev-null@apache.org>
Tue, 19 Dec 2006 22:27:54 +0000 (22:27 +0000)
reviewed: mcslee
revert: yes
test: run a C++ client and server with framed transport

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664899 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/transport/TTransportUtils.cpp

index 02454e3..9367eb5 100644 (file)
@@ -164,7 +164,7 @@ void TFramedTransport::flush()  {
   transport_->write((const uint8_t*)&sz, 4);
   
   // Write frame body
-  if (sz > 0) {
+  if (wLen_ > 0) {
     transport_->write(wBuf_, wLen_);
   }