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.