THRIFT-926. cpp: Make TZlibTransport::flush() behave like other transports
authorDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:10:26 +0000 (17:10 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:10:26 +0000 (17:10 +0000)
commite94fa3391db1a423b6964b0aa6499324d05b055b
tree31c7ea84ea0cadc3c411fa0078e88ede3f794bd4
parentf2abcf9a563849dc5861be8aa38f764525c072b1
THRIFT-926. cpp: Make TZlibTransport::flush() behave like other transports

Previously, TZlibTransport::flush() finished the zlib stream, so calling
write() after flush() would result in an error.  Now it just flushes the
data, without finishing the stream.  A new TZlibTransport::finish()
function has been added to finish the stream.

This breaks compatibility.  I'm aware of anyone using this code outside
of Facebook, though.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005151 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/transport/TTransport.h
lib/cpp/src/transport/TZlibTransport.cpp
lib/cpp/src/transport/TZlibTransport.h
lib/cpp/test/TransportTest.cpp
lib/cpp/test/ZlibTest.cpp