THRIFT-168. cpp: Clear transport buffers before a flush
authorDavid Reiss <dreiss@apache.org>
Wed, 29 Oct 2008 22:50:34 +0000 (22:50 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 29 Oct 2008 22:50:34 +0000 (22:50 +0000)
commitd90cd1f539f5837858aa64256d187b4444560b81
treed8de41e092bed047cf12db66f902ecfce06c9def
parentf33e03c6fad10465ac4867b27c63a35cb2de0cbe
THRIFT-168. cpp: Clear transport buffers before a flush

Previously, TBufferedTransport and TFramedTransport could
leave data in their buffers if a flush threw an exception.
This patch makes them reset their internal pointers before
flushing to the underlying transport.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@709037 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/transport/TBufferTransports.cpp